PC Review


Reply
Thread Tools Rate Thread

Connecting to an SQL Server Database

 
 
Roberto M. Oliva
Guest
Posts: n/a
 
      17th Nov 2003
Hi all!

I am unable to connect to a SQL Server Database (MSDE not an SQL Server CE)
using the SQLClient namespace.
My NET CF application runs on the emulator, but I cannot get my Connection
String to connect.
I have tried to use the Integrated Security=SSPI parameter, but... then I
have the following questions: Which SQL Server login (user/password) is the
device using? and how can I set up on the SQL Server logins?.

Thanks a lot
Roberto


 
Reply With Quote
 
 
 
 
Kevin Boske - [MS]
Guest
Posts: n/a
 
      19th Nov 2003
Hi Roberto,

When you use Integrated Security = SSPI, you're asking SQL Server to use a
Windows account to login, so you will need to pass a valid Windows User
Name and Password. If you wish to use a SQL Server account, then do not
pass Integrated Security=SSPI in the connection string.

Either way, you must use the user id and password properties in the
ConnectionString.


Kevin Boske
((E-Mail Removed))
SQL Server CE Team
Microsoft
----------------------------------------------------------------------------
----------------------------------------
Everything you need to know about SQL Server CE:

http://www.microsoft.com/sql/ce/techinfo/default.asp
----------------------------------------------------------------------------
----------------------------------------
This posting is provided "AS IS" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm.
----------------------------------------------------------------------------
----------------------------------------
--------------------
From: "Roberto M. Oliva" <(E-Mail Removed)>
Newsgroups: microsoft.public.dotnet.framework.compactframework
Subject: Connecting to an SQL Server Database
Date: Mon, 17 Nov 2003 10:03:56 +0100
Organization: Telefonica Data Espagna
Lines: 14
Message-ID: <bpaa42$n4j$(E-Mail Removed)>
NNTP-Posting-Host: 85.red-80-33-6.pooles.rima-tde.net
X-Trace: nsnmpen2-gest.nuria.telefonica-data.net 1069067202 23699
80.33.6.85 (17 Nov 2003 11:06:42 GMT)
X-Complaints-To: (E-Mail Removed)
NNTP-Posting-Date: Mon, 17 Nov 2003 11:06:42 +0000 (UTC)
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
Path:
cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!news-out.cwix.com!newsfeed.cwix.co
m!nsnmpen1-lo.nuria.telefonica-data.net!nsnmpen2-lo.nuria.telefonica-data.ne
t!not-for-mail
Xref: cpmsftngxa06.phx.gbl
microsoft.public.dotnet.framework.compactframework:38802
X-Tomcat-NG: microsoft.public.dotnet.framework.compactframework

Hi all!

I am unable to connect to a SQL Server Database (MSDE not an SQL Server CE)
using the SQLClient namespace.
My NET CF application runs on the emulator, but I cannot get my Connection
String to connect.
I have tried to use the Integrated Security=SSPI parameter, but... then I
have the following questions: Which SQL Server login (user/password) is the
device using? and how can I set up on the SQL Server logins?.

Thanks a lot
Roberto




 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Connecting to a SQL Server 2005 Database Sherwood Microsoft C# .NET 2 8th Jun 2008 08:49 AM
Connecting to a SQL Server Database =?Utf-8?B?RGJfU3R1ZmY=?= Microsoft Access External Data 7 7th Jul 2005 03:52 PM
Connecting to database on web server =?Utf-8?B?QWdhZ2lv?= Windows XP Networking 0 25th Feb 2005 08:51 AM
Connecting to a sql server database Irishmaninusa Microsoft Dot NET 2 13th Sep 2004 08:07 PM
Excel Connecting to SQL Server Database - Need your Help Rajesh G Microsoft Excel Programming 3 1st Mar 2004 05:56 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:55 PM.