dbTalk Databases Forums  

VFP 9 to SQL Server

comp.databases.xbase.fox comp.databases.xbase.fox


Discuss VFP 9 to SQL Server in the comp.databases.xbase.fox forum.



Reply
 
Thread Tools Display Modes
  #11  
Old   
Gene Wirchenko
 
Posts: n/a

Default Re: VFP 9 to SQL Server - 07-19-2010 , 07:16 PM






On Mon, 19 Jul 2010 17:12:33 -0700, Gene Wirchenko <genew (AT) ocis (DOT) net>
wrote:

Quote:
On Mon, 19 Jul 2010 14:56:35 +0200, "ViLco" <villiber (AT) tin (DOT) spam> wrote:

Gene Wirchenko wrote:

I note that the below does not include installing SQL Express.
The installation was full of unexplained options, and I got it wrong
the first time. I may have gotten it wrong after that; who knows?
Even folowing a supposed tutorial I found on the Web did not do it.

WHich version did you try to install? I recently installed SQLserver 2008
express and I hadn't much doubts about the setup options. Maybe things have
improved.

2008.

Who knows? Without proper docs, it is all too possible (and
likely) to get stuck in the swamp.

Here are my download notes. Can you tell if I have what I
should?

[The next four items are required to be installed in the same order
for
SQL Server 2008 Express with Advanced Services (the last of the
four).]

dotnetfx35setup.exe
.NET 3.5 download program (Actual download is about 52 MB.)
2008-12-29
downloaded starting from
http://www.microsoft.com/downloads/d...displaylang=en

WindowsXP-KB942288-v3-x86.exe
Windows Installer 4.5
2008-12-29
downloaded starting from
http://www.microsoft.com/downloads/details.aspx
?FamilyId=5A58B56F-60B6-4412-95B9-54D056D6F9F4&displaylang=en

WindowsXP-KB926139-v2-x86-ENU.exe
Windows PowerShell 1.0
2008-12-29
downloaded starting from
http://www.microsoft.com/downloads/details.aspx
?FamilyId=6CCB7E0D-8F1D-4B97-A397-47BCC8BA3806&displaylang=en

SQLEXPRADV_x86_ENU.exe
SQL Server 2008 Express with Advanced Services
2008-12-29
downloaded starting from
http://www.microsoft.com/downloads/details.aspx
?FamilyId=B5D1B8C3-FDA5-4508-B0D0-1311D670E336&displaylang=en

[end of SQL Server installation programs]
And, if I do have what is required, how exactly to install it? I
would love a good tutorial. I did find a tutorial, but it did not
work.

Sincerely,

Gene Wirchenko

Reply With Quote
  #12  
Old   
ViLco
 
Posts: n/a

Default Re: VFP 9 to SQL Server - 07-21-2010 , 08:56 AM






Gene Wirchenko wrote:

Quote:
SQLEXPRADV_x86_ENU.exe
SQL Server 2008 Express with Advanced Services
2008-12-29
downloaded starting from
http://www.microsoft.com/downloads/details.aspx
?FamilyId=B5D1B8C3-FDA5-4508-B0D0-1311D670E336&displaylang=en

[end of SQL Server installation programs]
I installed this package: SQLEXPRWT_x86_ENU.exe
The name tells me it's different from the SQL Server 2008 with Advanced
Services.
Before that I installed both the Framework 3.5 and the Windows Installer 4.5
as you did, same versions, since I was reading the page about SQLServer 2008
with Advanced Services, but I did not install the PowerShell when I realized
we had this package.
Here's some explanation of the 2 packages:
http://social.msdn.microsoft.com/For...e-8959e59e2a3c

Quote:
And, if I do have what is required, how exactly to install it? I
would love a good tutorial. I did find a tutorial, but it did not
work.
All the softwares I installed simply required clicking on "Next" button,
apart from agreeing to the EULAs, so I didn't modify anything.
--
Vilco
And the Family Stone

Reply With Quote
  #13  
Old   
Gene Wirchenko
 
Posts: n/a

Default Re: VFP 9 to SQL Server - 07-21-2010 , 04:52 PM



On Wed, 21 Jul 2010 15:56:59 +0200, "ViLco" <villiber (AT) tin (DOT) spam> wrote:

[snip]

Quote:
All the softwares I installed simply required clicking on "Next" button,
apart from agreeing to the EULAs, so I didn't modify anything.
Well, I had to specify some accounts. I hope I got that right.

Now what?

Sincerely,

Gene Wirchenko

Reply With Quote
  #14  
Old   
ViLco
 
Posts: n/a

Default Re: VFP 9 to SQL Server - 07-23-2010 , 03:05 AM



Gene Wirchenko wrote:

Quote:
All the softwares I installed simply required clicking on "Next"
button, apart from agreeing to the EULAs, so I didn't modify
anything.

Well, I had to specify some accounts. I hope I got that right.

Now what?
Use it
I don't know what you did install it for, you know why. For testing?
Exporting data to/from VFP and SQL? Upsizing your VFP data to SQLserver?
I mainly use it to extract data coming from customers who move from third
party products to our products, and we have to convert theyr data into our
structure. This way I have seen many versions of SQLserver, Oracle, SQLbase,
SQLAnywhere, Cobol files, C-iSAM, Access, Excel, csv...
It's nice to get in touch with different RDBMS's.
--
Vilco
And the Family Stone

Reply With Quote
  #15  
Old   
Gene Wirchenko
 
Posts: n/a

Default Re: VFP 9 to SQL Server - 07-26-2010 , 02:16 PM



On Fri, 23 Jul 2010 10:05:39 +0200, "ViLco" <villiber (AT) tin (DOT) spam> wrote:

Quote:
Gene Wirchenko wrote:

All the softwares I installed simply required clicking on "Next"
button, apart from agreeing to the EULAs, so I didn't modify
anything.

Well, I had to specify some accounts. I hope I got that right.

Now what?

Use it
I don't know what you did install it for, you know why. For testing?
Exporting data to/from VFP and SQL? Upsizing your VFP data to SQLserver?
I mainly use it to extract data coming from customers who move from third
party products to our products, and we have to convert theyr data into our
structure. This way I have seen many versions of SQLserver, Oracle, SQLbase,
SQLAnywhere, Cobol files, C-iSAM, Access, Excel, csv...
It's nice to get in touch with different RDBMS's.
I would like to set up a simple database using SQL Server
features and get comfortable with it. Then, I want to see about
having VFP talking to such a database.

Anything else is extraneous for now. Well, maybe you will tell
me that I should also look at <something I wot* not of>.

*wot: a word to use when "know" is too long.

Sincerely,

Gene Wirchenko

Reply With Quote
  #16  
Old   
ViLco
 
Posts: n/a

Default Re: VFP 9 to SQL Server - 07-27-2010 , 08:57 AM



Gene Wirchenko wrote:

Quote:
I would like to set up a simple database using SQL Server
features and get comfortable with it. Then, I want to see about
having VFP talking to such a database.

Anything else is extraneous for now. Well, maybe you will tell
me that I should also look at <something I wot* not of>.

*wot: a word to use when "know" is too long.
Launch SQLserver Management Studio Express (MSE) and see the tree structure
on the left, see databases. Create a new one and then connect to it. I
usually connect via ODBC, due to what I usually do with RDBMS, you can do as
you please.
Then once you're connected you can start working with SQLEXEC()
If yoy choose the ODBC way, the SQLServer ODBC wizard will ask you some info
as the server, I used MyPCname\SQLEXPRESS, then you'll be asked for the
database name, use what you've inserted when creating it in MSE. After this,
you should be ready to go.
--
Vilco
And the Family Stone

Reply With Quote
  #17  
Old   
Gene Wirchenko
 
Posts: n/a

Default Re: VFP 9 to SQL Server - 07-27-2010 , 04:07 PM



On Tue, 27 Jul 2010 15:57:38 +0200, "ViLco" <villiber (AT) tin (DOT) spam> wrote:

Quote:
Gene Wirchenko wrote:

I would like to set up a simple database using SQL Server
features and get comfortable with it. Then, I want to see about
having VFP talking to such a database.

Anything else is extraneous for now. Well, maybe you will tell
me that I should also look at <something I wot* not of>.

*wot: a word to use when "know" is too long.

Launch SQLserver Management Studio Express (MSE) and see the tree structure
on the left, see databases. Create a new one and then connect to it. I
usually connect via ODBC, due to what I usually do with RDBMS, you can do as
you please.
I have no SQLserver Management Studio Express (MSE) in my SQL
Express installation. I have SQL Server Management Studio.

How do I connect to the new database?

Are you referring to use within SSMS? If yes, then I have
figured out how to do that. At least, I can switch between databases
creating tables in each.

If not, I have no idea what is involved in connecting. I have
been using VFP's internal tables only.

Quote:
Then once you're connected you can start working with SQLEXEC()
If yoy choose the ODBC way, the SQLServer ODBC wizard will ask you some info
as the server, I used MyPCname\SQLEXPRESS, then you'll be asked for the
database name, use what you've inserted when creating it in MSE. After this,
you should be ready to go.
As you can see, I am not at the ready-to-go point yet and could
use some help getting there.

Sincerely,

Gene Wirchenko

Reply With Quote
  #18  
Old   
ViLco
 
Posts: n/a

Default Re: VFP 9 to SQL Server - 07-28-2010 , 05:41 AM



Gene Wirchenko wrote:

Quote:
Launch SQLserver Management Studio Express (MSE) and see the tree
structure on the left, see databases. Create a new one and then
connect to it. I usually connect via ODBC, due to what I usually do
with RDBMS, you can do as you please.

I have no SQLserver Management Studio Express (MSE) in my SQL
Express installation. I have SQL Server Management Studio.
I have added "express" involuntarily, it's as you say.

Quote:
How do I connect to the new database?

Are you referring to use within SSMS? If yes, then I have
figured out how to do that. At least, I can switch between databases
creating tables in each.
Yes, I meant that, in this stage.

Quote:
If not, I have no idea what is involved in connecting. I have
been using VFP's internal tables only.

Then once you're connected you can start working with SQLEXEC()
If yoy choose the ODBC way, the SQLServer ODBC wizard will ask you
some info as the server, I used MyPCname\SQLEXPRESS, then you'll be
asked for the database name, use what you've inserted when creating
it in MSE. After this, you should be ready to go.

As you can see, I am not at the ready-to-go point yet and could
use some help getting there.
So you have created some databases? OK

FInd a guida telling how to setup an ODBC Data Source for the SQLexpress
server, it's very long to write down here and you can find a ton on the net.
Then you'll have your SQLserver ODBC data source. During the odbc data
source wizard, select "Windows Authentication" for ease of use. If you
don0't find the server in the "Server: " combobox, type
YOURPCNAME\SQLEXPRESS as the server.
With VFP just do

hnd = SQLCONNECT("DataSourceName")

? SQLEXEC(hnd, "SELECT SOMEFIELDS FROM SOMETABLE WHERE SOMECONDITION",
"SQLDATA")

And you'll have a VFP cursor containing the data from that table, filtered
as you asked with SQLEXEC().
The same SQLECEC() command can be used to INSERT, UPDATE, DELETE and so on.
Other nice commands are SQLTABLES and SQLCOLUMNS. On VFP's guide you should
check the various commands/ functions whose name starts with "SQL", you'll
find a lot more.
This is just the basics, then there's a nice thing in VFP called
CursorAdapter, which can be used to simplify more complex things as
updateable views and so on.
HTH
--
Vilco
And the Family Stone

Reply With Quote
  #19  
Old   
Jan Bucek
 
Posts: n/a

Default Re: VFP 9 to SQL Server - 07-28-2010 , 06:15 AM



This webs:

http://www.vitus.com/vfpcs.html
http://www.connectionstrings.com/

can be useful for you.

Dne 27.7.2010 23:07, Gene Wirchenko napsal(a):
Quote:
On Tue, 27 Jul 2010 15:57:38 +0200, "ViLco"<villiber (AT) tin (DOT) spam> wrote:

Gene Wirchenko wrote:

I would like to set up a simple database using SQL Server
features and get comfortable with it. Then, I want to see about
having VFP talking to such a database.

Anything else is extraneous for now. Well, maybe you will tell
me that I should also look at<something I wot* not of>.

*wot: a word to use when "know" is too long.

Launch SQLserver Management Studio Express (MSE) and see the tree structure
on the left, see databases. Create a new one and then connect to it. I
usually connect via ODBC, due to what I usually do with RDBMS, you can do as
you please.

I have no SQLserver Management Studio Express (MSE) in my SQL
Express installation. I have SQL Server Management Studio.

How do I connect to the new database?

Are you referring to use within SSMS? If yes, then I have
figured out how to do that. At least, I can switch between databases
creating tables in each.

If not, I have no idea what is involved in connecting. I have
been using VFP's internal tables only.

Then once you're connected you can start working with SQLEXEC()
If yoy choose the ODBC way, the SQLServer ODBC wizard will ask you some info
as the server, I used MyPCname\SQLEXPRESS, then you'll be asked for the
database name, use what you've inserted when creating it in MSE. After this,
you should be ready to go.

As you can see, I am not at the ready-to-go point yet and could
use some help getting there.

Sincerely,

Gene Wirchenko

Reply With Quote
Reply




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.