 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Ray Porter Guest
|
Posted: Sat Apr 28, 2007 12:31 am Post subject: configuring SQL Server Express |
|
|
I've just installed SQL Server Express and I have a couple of questions.
1) I have a database for a little side project I've been developing in MS
Access. I'd like to switch it over to SQL Server. Is there a quick way to
import the tables, etc., from MS Access to SQL Server Express?
2) How do you configure SQL Server Express so you can connect to it via ADO
from Delphi (BDS2006) or from other tools?
3) I've created a database and have tried adding a user but I get the
message, "failed because "username" is not a valid login name or you do not
have sufficient permission," or something very similar. I was logged into
the Server Manager using Windows authentication. I've also tried it logging
in as "sa".
4) Any thing else I need to know to use SQL Server Express as a test/local
db engine?
Thanks,
=================================
Ray Porter
Information Systems
Applications Development Manager
Division of University Advancement
University of North Carolina at Chapel Hill
Phone: (919) 259-9389
Fax: (919) 843-3314
Pager: (919) 216-4218
ray_porter (AT) unc (DOT) edu
http://www.unc.edu/~dragon
Meddle not in the affairs of dragons for thou
art crunchy and taste good with ketchup |
|
| Back to top |
|
 |
Brian Hollister Guest
|
Posted: Sat Apr 28, 2007 3:40 am Post subject: Re: configuring SQL Server Express |
|
|
| Quote: | 1) I have a database for a little side project I've been developing in MS
Access. I'd like to switch it over to SQL Server. Is there a quick way
to
import the tables, etc., from MS Access to SQL Server Express?
|
Not sure about this one...There might be a wizard or something....
| Quote: | 2) How do you configure SQL Server Express so you can connect to it via
ADO
from Delphi (BDS2006) or from other tools?
|
As long as you have it able to accept connections all you should need to do
is to use the right driver, see www.connectionstrings.com
| Quote: | 3) I've created a database and have tried adding a user but I get the
message, "failed because "username" is not a valid login name or you do
not
have sufficient permission," or something very similar. I was logged into
the Server Manager using Windows authentication. I've also tried it
logging
in as "sa".
|
Did you run sp_addlogin? If not do that then change to the db in question
and then run sp_adduser...
| Quote: | 4) Any thing else I need to know to use SQL Server Express as a test/local
db engine?
|
Not that I am aware of we are porting now to 2005, its not express but other
than the normal limitations like db size and such there are none that I am
aware of.
Hth,
Brian |
|
| Back to top |
|
 |
Ray Porter Guest
|
Posted: Sat Apr 28, 2007 5:50 am Post subject: Re: configuring SQL Server Express |
|
|
Hi Brian,
I've managed to add a user in the SQL Server Management Studio. I know how
to construct a connection string but I haven't been able to connect to the
database from Business Intelligence Development Studio or any other tool.
I've seen a comment about SQL Server Express not allowing remote connections
by default. I guess that's the setting I haven't been able to locate now.
Ray
"Brian Hollister" <bhollisterATfuturaintlDOTcom> wrote in message
news:46327bef$1 (AT) newsgroups (DOT) borland.com...
| Quote: | 1) I have a database for a little side project I've been developing in MS
Access. I'd like to switch it over to SQL Server. Is there a quick way
to
import the tables, etc., from MS Access to SQL Server Express?
Not sure about this one...There might be a wizard or something....
2) How do you configure SQL Server Express so you can connect to it via
ADO
from Delphi (BDS2006) or from other tools?
As long as you have it able to accept connections all you should need to
do
is to use the right driver, see www.connectionstrings.com
3) I've created a database and have tried adding a user but I get the
message, "failed because "username" is not a valid login name or you do
not
have sufficient permission," or something very similar. I was logged
into
the Server Manager using Windows authentication. I've also tried it
logging
in as "sa".
Did you run sp_addlogin? If not do that then change to the db in question
and then run sp_adduser...
4) Any thing else I need to know to use SQL Server Express as a
test/local
db engine?
Not that I am aware of we are porting now to 2005, its not express but
other
than the normal limitations like db size and such there are none that I am
aware of.
Hth,
Brian
|
|
|
| Back to top |
|
 |
Ray Porter Guest
|
Posted: Sat Apr 28, 2007 4:47 pm Post subject: Re: configuring SQL Server Express - a little more informait |
|
|
Hi all,
When I attempt to build a connection string for a TADOConnection in Delphi,
I get the following error:
"Error enumerating data servers. Enumerator reports 'unspecified error'.
It looks like SQL Server simply isn't visible to anything else on the local
machine. I've enabled TCP/IP. What else do I need to do?
Thanks,
Ray
"Ray Porter" <ray_porter (AT) unc (DOT) edu> wrote in message
news:46329a4e$1 (AT) newsgroups (DOT) borland.com...
| Quote: | Hi Brian,
I've managed to add a user in the SQL Server Management Studio. I know
how to construct a connection string but I haven't been able to connect to
the database from Business Intelligence Development Studio or any other
tool. I've seen a comment about SQL Server Express not allowing remote
connections by default. I guess that's the setting I haven't been able to
locate now.
Ray
"Brian Hollister" <bhollisterATfuturaintlDOTcom> wrote in message
news:46327bef$1 (AT) newsgroups (DOT) borland.com...
1) I have a database for a little side project I've been developing in
MS
Access. I'd like to switch it over to SQL Server. Is there a quick way
to
import the tables, etc., from MS Access to SQL Server Express?
Not sure about this one...There might be a wizard or something....
2) How do you configure SQL Server Express so you can connect to it via
ADO
from Delphi (BDS2006) or from other tools?
As long as you have it able to accept connections all you should need to
do
is to use the right driver, see www.connectionstrings.com
3) I've created a database and have tried adding a user but I get the
message, "failed because "username" is not a valid login name or you do
not
have sufficient permission," or something very similar. I was logged
into
the Server Manager using Windows authentication. I've also tried it
logging
in as "sa".
Did you run sp_addlogin? If not do that then change to the db in question
and then run sp_adduser...
4) Any thing else I need to know to use SQL Server Express as a
test/local
db engine?
Not that I am aware of we are porting now to 2005, its not express but
other
than the normal limitations like db size and such there are none that I
am
aware of.
Hth,
Brian
|
|
|
| Back to top |
|
 |
Oliver Townshend Guest
|
Posted: Sun Apr 29, 2007 8:11 am Post subject: Re: configuring SQL Server Express - a little more informait |
|
|
| Quote: | It looks like SQL Server simply isn't visible to anything else on the
local machine. I've enabled TCP/IP. What else do I need to do?
|
Try a connection name of SQLEXPRESSS\databasename
Oliver Townshend |
|
| Back to top |
|
 |
Brian Hollister Guest
|
Posted: Sun Apr 29, 2007 8:19 pm Post subject: Re: configuring SQL Server Express - a little more informait |
|
|
Hi Ray,
Did you use the SQL Server Surface Area app to open the server up for remote
connections? If not try this link as it may assist you,
http://msdn2.microsoft.com/en-us/library/ms173748.aspx. I also had to allow
for this in Windows Firewall as well.
hth,
brian
--
Got a big event coming up? Let us
help coordinate your event. For more
visit www.kissemgoodbye.com
"Oliver Townshend" <oliveratcodelegaldotcomdotau> wrote in message
news:4634179f (AT) newsgroups (DOT) borland.com...
| Quote: | It looks like SQL Server simply isn't visible to anything else on the
local machine. I've enabled TCP/IP. What else do I need to do?
Try a connection name of SQLEXPRESSS\databasename
Oliver Townshend
|
|
|
| Back to top |
|
 |
Guest
|
Posted: Sun Apr 29, 2007 11:47 pm Post subject: Re: configuring SQL Server Express |
|
|
On Apr 27, 10:31 pm, "Ray Porter" <ray_por...@unc.edu> wrote:
| Quote: | I've just installed SQL Server Express and I have a couple of questions.
1) I have adatabasefor a little side project I've been developing in MSAccess. I'd like to switch it over to SQL Server. Is there a quick way to
import the tables, etc., from MSAccessto SQL Server Express?
2) How do you configure SQL Server Express so you can connect to it via ADO
from Delphi (BDS2006) or from other tools?
3) I've created adatabaseand have tried adding a user but I get the
message, "failed because "username" is not a valid login name or you do not
have sufficient permission," or something very similar. I was logged into
the Server Manager using Windows authentication. I've also tried it logging
in as "sa".
4) Any thing else I need to know to use SQL Server Express as a test/local
db engine?
Thanks,
=================================
Ray Porter
Information Systems
Applications Development Manager
Division of University Advancement
University of North Carolina at Chapel Hill
Phone: (919) 259-9389
Fax: (919) 843-3314
Pager: (919) 216-4218
ray_por...@unc.eduhttp://www.unc.edu/~dragon
Meddle not in the affairs of dragons for thou
art crunchy and taste good with ketchup
|
There is an upsizing wizard in MS Access which will transform your MS
Access tables to SQL ones. It's in Tools>Database Utilities. The
wizard has a few options one of them is to change your tabes to SQL
tables. |
|
| Back to top |
|
 |
Paras Kafley Guest
|
Posted: Thu May 03, 2007 8:11 am Post subject: Re: configuring SQL Server Express |
|
|
Ray Porter wrote:
| Quote: | 1) I have a database for a little side project I've been developing
in MS Access. I'd like to switch it over to SQL Server. Is there a
quick way to import the tables, etc., from MS Access to SQL Server
Express?
|
Access does (or used to at least) come with an upsizing wizard which
would migrate your tables to SQL server. In the version that I used in
past, it used to add an extra column to SQL Server tables.
Your other option will be to use Data transformation Services to
transfer the objects from Access to SQL Server.
In both cases you might need to tweak the tables - especially the
numeric fields as in most of the cases they get transfered as float
field instead of decimal fields which might not be what you want.
Also if you have images/blob fields (OLE fields in Access) then you
will have a problem since if I remember correctly access adds a header
information to the records - which you will have to strip off in SQL
Server.
| Quote: | 3) I've created a database and have tried adding a user but I get the
message, "failed because "username" is not a valid login name or you
do not have sufficient permission," or something very similar. I was
logged into the Server Manager using Windows authentication. I've
also tried it logging in as "sa".
|
You will need to use the SQL Server Surface area configuration wizard
to allow remote connection to the database engine if you are connecting
remotely. If you are on the same machine usually providing
MachineName\Instance name should work.
Also try to connect to the database engine logged in as the
administrator of the machine, if memory serves me right, by default SQL
Server Express is installed to use integrated Security so logging in as
sa will not work - unless you set up the system to use mixed mode
authentication. If you can log in to the SQL Server engine as a local
administrator then simply add your regual development user to the
serveradmin/sysadmin fixed role.
While you are developing try to use a user which doesn't have too many
priviliges in the database server (not part of
serveradmin/diskadmin/sysadmin roles etc) - will save you a lot of
grief latter on.
Also you should use the fully qualifed object name in the format schema
name.object name in your queries etc- it didn't matter much in SQL
Server 7-2000 - everyone simply used dbo- but with the seperation of
schema from user in SQL Server 2005 this can be fairly important (for
example query notifications won't use if you don't use fully qualifed
name). It also makes object more easy to secure latter on.
HTH
Paras |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|