Z
Zalak Dedhia via DotNetMonster.com
Hello Guys,
I need some help urgently regarding the code to connect to the SQl Server
on a remote machine and possible configurations to make, or chanegs in the
connection string or so.
I mean i keep getting the error "SQL Server or Access denied"
To rectify this i have used 'n' number of diff combinations of the
conenction string with the SQLConnection methos, please let me know if they
are correct or if there is something that needs to be added
The various connection strings tried:-
myConnectionString = "Initial Catalog=Northwind;Data Source=\\
blrkec25251;Integrated Security=SSPI;"
myConnectionString = "Persist Security Info=False;Integrated
Security=SSPI;database=northwind;server=MSSQLSERVER;data
source=blrkec25251;user ID=zalak;pwd=dedhia"
myConnectionString = "User ID=zalak;pwd=dedhia;Initial
Catalog=Northwind;Data Source=MSSQLSERVER;Workstation ID=blrkec25251"
myConnectionString = "data source=blrkec25251;initial
catalog=Northwind;uid=sa;pwd=SysAdmin"
myConnectionString =
"uid=sa;pwd=SysAdmin;database=Northwind;server=192.168.206.97"
I need to know what exactly to out the value for each of these parameters
needs to be
SERVER
INITIAL CATALOG
Data Source
Workstation Id
thanks and regards,
zalak
I need some help urgently regarding the code to connect to the SQl Server
on a remote machine and possible configurations to make, or chanegs in the
connection string or so.
I mean i keep getting the error "SQL Server or Access denied"
To rectify this i have used 'n' number of diff combinations of the
conenction string with the SQLConnection methos, please let me know if they
are correct or if there is something that needs to be added
The various connection strings tried:-
myConnectionString = "Initial Catalog=Northwind;Data Source=\\
blrkec25251;Integrated Security=SSPI;"
myConnectionString = "Persist Security Info=False;Integrated
Security=SSPI;database=northwind;server=MSSQLSERVER;data
source=blrkec25251;user ID=zalak;pwd=dedhia"
myConnectionString = "User ID=zalak;pwd=dedhia;Initial
Catalog=Northwind;Data Source=MSSQLSERVER;Workstation ID=blrkec25251"
myConnectionString = "data source=blrkec25251;initial
catalog=Northwind;uid=sa;pwd=SysAdmin"
myConnectionString =
"uid=sa;pwd=SysAdmin;database=Northwind;server=192.168.206.97"
I need to know what exactly to out the value for each of these parameters
needs to be
SERVER
INITIAL CATALOG
Data Source
Workstation Id
thanks and regards,
zalak