Showing posts with label ole. Show all posts
Showing posts with label ole. Show all posts

Wednesday, March 21, 2012

How to login to SQL servers in a DTS?

Hello,

I have a DTS package in which I have several flows using different connections (OLE DB Providers, etc...) with Login ID and password.

But whenever the password changes, I need to manually update all the connections I have in this DTS. Isn't there an easier way to do that, somewhere via code or something else?
DTS or SSIS?

For DTS questions, see the DTS forum: http://groups.google.com/group/microsoft.public.sqlserver.dts?lnk=srg|||

Assuming you're talking about SSIS, you can consider other package protection levels (avoid password encryption) - e.g. ServerStorage.

See http://technet.microsoft.com/en-us/library/ms141747(SQL.90).aspx

How to login to SQL servers in a DTS?

Hello,

I have a DTS package in which I have several flows using different connections (OLE DB Providers, etc...) with Login ID and password.

But whenever the password changes, I need to manually update all the connections I have in this DTS. Isn't there an easier way to do that, somewhere via code or something else?
DTS or SSIS?

For DTS questions, see the DTS forum: http://groups.google.com/group/microsoft.public.sqlserver.dts?lnk=srg|||

Assuming you're talking about SSIS, you can consider other package protection levels (avoid password encryption) - e.g. ServerStorage.

See http://technet.microsoft.com/en-us/library/ms141747(SQL.90).aspx

Monday, March 19, 2012

How to log in to my DB ?

Hi,

I have a website with mssql data base recently I got this error:

it's showing error as 'Microsoft OLE DB Provider for SQL Server error '80040e4d'

Login failed for user

/includes/connect.inc, line 23

As I am a new to this data base I dont know how to Log in to my data base and rectify it can any one help me in this I am a naive in this....recently I got this error...So, where you able to log in previously, and now suddenly you can't? Or have you never made a connection with this database server before?

Who is the DBA for the server?|||KBA http://support.microsoft.com/default.aspx/kb/222828 fyi.|||So, where you able to log in previously, and now suddenly you can't? Or have you never made a connection with this database server before?

Who is the DBA for the server?

Till now i have not made a connection with this data base server as everything was done by my developer now he is not seen|||KBA http://support.microsoft.com/default.aspx/kb/222828 fyi.

I dont know how to open that control panel and do that as I dont know anything about this pls can you guide me ?|||No, back up way further than that.

Who administers the database server?

Have you been granted access to the server either through your network login or a specified SQL Server login and password.|||KBA http://support.microsoft.com/default.aspx/kb/222828 fyi.

I used this now and rectified but the problem still excists I think I have to try doing this :

http://support.microsoft.com/kb/292644/en-us

I am not sure how to do it Can any one help me ?|||No, back up way further than that.

Who administers the database server?

Have you been granted access to the server either through your network login or a specified SQL Server login and password.

I have the user id and password to log in before my developer did it after that he left not seen around so to safe guard the data base and ftp i asked my hosting company to change my password after which this i get this error message.|||that explains that. you changed the password to the sql server without updating the one the application uses in the sourcecode.|||Yes I recently asked my hosting company to change the password Now kindly let me know how should i rectify the error using this ?
http://support.microsoft.com/kb/292644/en-us

wishes|||you probably have to go into your application sourcecode and update the password in your connection string(s).|||you probably have to go into your application sourcecode and update the password in your connection string(s).

Yes I know I have to do this :

http://support.microsoft.com/kb/292644/en-us

But I dont know How to do this as I tried many ways but I dont know how to do it|||I had not clicked on the link. Are you using the sa account for your application? If so you have bigger problems. That is a ginormous security no-no.

As for how to change the password in the application, I guess you need to hire a computer programmer.|||Could be in a config file...|||This happend only after i changed the data base password from the hosting side I dont know how to solve this problem|||Julie,

The password for your application is either in a config file or embedded in the application code. You will need the original application code, or you will need to contact the application developer. Other than that, there is not much help we can give you.|||From the original error message, go to the file at:
/includes/connect.inc
Open this up with notepad. Look for the old password on line 23 or before. Change that out with the new password, and test.|||From the original error message, go to the file at:
/includes/connect.inc
Open this up with notepad. Look for the old password on line 23 or before. Change that out with the new password, and test.

I went to the /inlcudes/connect.inc and I dont see the password I just see the following:

Function Login
'StrUsername = cint(Request.Form("username"))
'StrPassword = Trim(Request.Form("password"))
Dim conn, rs, sql

Set conn = Server.CreateObject("ADODB.Connection")
conn.open Strpro
Set rs = Server.CreateObject("ADODB.Recordset")
'SQL = "SELECT ID,Password FROM register WHERE ID= ('"& Replace(StrUsername,"'","''") &" ') AND password ('"& Replace(StrPassword,"'","''") &" ') OR Email= ('"& Replace(StrUserid,"'","''") &" ') "
sql = "SELECT * FROM admin_login WHERE username= '" & Replace(Request.Form("Username"),"'", "''") & "' AND password = '" & Replace(Request.Form("Password"),"'", "''") & "' "

Kindly advice what should I do in this ?|||you want the password that will be set in this variable "Strpro". The password you are looking at in this code is for the application. The one set in "Strpro" is for the server.

The code you need will look like...

Set Strpro = "some stuff in here"|||you want the password that will be set in this variable "Strpro". The password you are looking at in this code is for the application. The one set in "Strpro" is for the server.

The code you need will look like...

Set Strpro = "some stuff in here"

ok let me try to find out but Even if you see this is for the Application we dont see any password ?|||under all probability the connection details are there in the file /includes/connect.inc somewhere near line 23 and the application is an ASP application. open that file (download it from the server if needed) and you will find the connection string where the password is written.|||sorry for the misleading late post...i missed the 2nd page...|||I tried my level best but I was not able to get connected so I just went back to my old password :(|||I tried to change my password from the Host Once again I get the same problem.
I get a error report :

Microsoft OLE DB Provider for SQL Server error '80040e4d'

Login failed for user

/includes/connect.inc, line 23

Kindly help me in this|||Line 23 in the Connect.inc file is where the connection object is having the Open method invoked. However, there are several ways to supply all the required parameters. Do you see the word "Password" in the code before line 23? Or does (oh the horror) the connect.inc require other files?|||Hire someone who know what they are doing?|||Hire someone who know what they are doing?
...about the same solution I arrived at a week ago:
Julie,

The password for your application is either in a config file or embedded in the application code. You will need the original application code, or you will need to contact the application developer. Other than that, there is not much help we can give you.

Friday, March 9, 2012

how to link excel sheet with Crystal Report

How can i be able to link excel file with crystal report
i tried OLE and was succeeded but with problem that it displays the cells lines that are not needed.

second thing i was trying to do it through dsn (tried all the 3 dsn types)
but when i connect crystal report with it using ODBC it shows me
"No Items found".

any suggestion ?when i link excel file with Crystal Report8.5
as an OLE i see some extra blank cells with it on the right side and when i take a print of it, these cells are also printed

i used crystal report control to connect vb with report
the code is here
cr1 is the Crystal Report Control's Name
Code:

cr1.DiscardSavedData = True
cr1.ReportFileName = "C:\myexcelreport.rpt"
cr1.Destination = crptToWindow
cr1.ReportSource = crptReport
cr1.WindowShowRefreshBtn = True
cr1.WindowShowExportBtn = True
cr1.WindowShowPrintBtn = True
cr1.Action = True



Is there any way to dislpaly only the desired area of the excel file in report ?|||Hey guys
Finally got the solution.............|||hi

do u know how to import the fields from crystal report to an excel spreadsheet

or

to import values resulting from a query to a spreadsheet?

Thanks.