Results 1 to 15 of 15

Thread: SQL Server 2005

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    May 2005
    Posts
    258

    SQL Server 2005

    I am completely new to SQL Server in general. My company looks to be heading in that direction with the massive growth we are going through. I need to learn SQL Server ASAP. Does anyone know where to go to get the basics on creating databases, and such? Coding is easy as I have some experience in ADO.NET 2.0. I have only connected to access before though, I know nothing on SQL Server.


    Thanks in advance!!
    Currently Using: VS 2005 Professional

  2. #2
    Fanatic Member -TPM-'s Avatar
    Join Date
    Jul 2005
    Posts
    850

    Re: SQL Server 2005

    Probably your best bet would be to head down to your local book store and pick up a good book. That way you'll always have something to referance.
    TPM

    Add yourself to the VBForums Frappr Map!!

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    May 2005
    Posts
    258

    Re: SQL Server 2005

    Is SQL Server like Access? Is there an interface built in like Access that will allow me to manipulate the database and get me familiar with the software?

    I have SQL 2005 Express installed from VB2005.


    Thanks!
    Currently Using: VS 2005 Professional

  4. #4
    Fanatic Member -TPM-'s Avatar
    Join Date
    Jul 2005
    Posts
    850

    Re: SQL Server 2005

    Yes, it's a bit different to access though. If you know access you probably won't have to much trouble switching over, especially if you've got something to reference when you do get stuck.
    TPM

    Add yourself to the VBForums Frappr Map!!

  5. #5

    Thread Starter
    Hyperactive Member
    Join Date
    May 2005
    Posts
    258

    Re: SQL Server 2005

    What is the interface called then? I only see the configuration manager tools in my Start menu.
    Currently Using: VS 2005 Professional

  6. #6
    MS SQL Powerposter szlamany's Avatar
    Join Date
    Mar 2004
    Location
    Connecticut
    Posts
    18,263

    Re: SQL Server 2005

    That's the big difference between ACCESS and MS SQL SERVER.

    MS SQL has no interface - it's purely a backend database. There is not "UI" like access for frontend.

    Normally one would develop the frontend in VB (well at least most of the people on this VB forum would!).

    *** Read the sticky in the DB forum about how to get your question answered quickly!! ***

    Please remember to rate posts! Rate any post you find helpful - even in old threads! Use the link to the left - "Rate this Post".

    Some Informative Links:
    [ SQL Rules to Live By ] [ Reserved SQL keywords ] [ When to use INDEX HINTS! ] [ Passing Multi-item Parameters to STORED PROCEDURES ]
    [ Solution to non-domain Windows Authentication ] [ Crazy things we do to shrink log files ] [ SQL 2005 Features ] [ Loading Pictures from DB ]

    MS MVP 2006, 2007, 2008

  7. #7

    Thread Starter
    Hyperactive Member
    Join Date
    May 2005
    Posts
    258

    Re: SQL Server 2005

    Is that when the T-SQL language comes in?
    Currently Using: VS 2005 Professional

  8. #8
    MS SQL Powerposter szlamany's Avatar
    Join Date
    Mar 2004
    Location
    Connecticut
    Posts
    18,263

    Re: SQL Server 2005

    Quote Originally Posted by tacoman667
    Is that when the T-SQL language comes in?
    Kind of...

    In ACCESS you really could only write QUERIES (and sub-queries within).

    With T-SQL you have IF/blocks and logic flow - similar to a higher level language.

    So your queries become almost "query programs".

    We've written complete processes in T-SQL STORED PROCEDURES - calculate payrolls, schedule students into high school classes.

    All this was done in VB with logic in the past - now in SPROCS with T-SQL - we can do it all on the server...

    *** Read the sticky in the DB forum about how to get your question answered quickly!! ***

    Please remember to rate posts! Rate any post you find helpful - even in old threads! Use the link to the left - "Rate this Post".

    Some Informative Links:
    [ SQL Rules to Live By ] [ Reserved SQL keywords ] [ When to use INDEX HINTS! ] [ Passing Multi-item Parameters to STORED PROCEDURES ]
    [ Solution to non-domain Windows Authentication ] [ Crazy things we do to shrink log files ] [ SQL 2005 Features ] [ Loading Pictures from DB ]

    MS MVP 2006, 2007, 2008

  9. #9

    Thread Starter
    Hyperactive Member
    Join Date
    May 2005
    Posts
    258

    Re: SQL Server 2005

    If I plan to make my own interface in VS2005 which will create databases, tables, and fields within code, will I still need to learn T-SQL or can I do all of that in VB? I want to use SQL because with the amount of data I will be storing and processing, I need something far better then access.
    Currently Using: VS 2005 Professional

  10. #10
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: SQL Server 2005

    You can write your code using SQL and execute your SQL statements from VB (I believe that is the question).

    You might also want to consider wrapping your SQL code in stored procedures, and executing the stored procedures from VB.

  11. #11

    Thread Starter
    Hyperactive Member
    Join Date
    May 2005
    Posts
    258

    Re: SQL Server 2005

    If I write all code in SQL, then why would I use VB? Not being confrontational, just wondering. Also, I have read that VS2005 and SQL Server have been integrated ALOT, does this mean that I would not need to learn SQL code and can do it all in VB?

    Ifeel like such a n00b.
    Currently Using: VS 2005 Professional

  12. #12
    MS SQL Powerposter szlamany's Avatar
    Join Date
    Mar 2004
    Location
    Connecticut
    Posts
    18,263

    Re: SQL Server 2005

    Quote Originally Posted by tacoman667
    If I write all code in SQL, then why would I use VB? Not being confrontational, just wondering. Also, I have read that VS2005 and SQL Server have been integrated ALOT, does this mean that I would not need to learn SQL code and can do it all in VB?

    Ifeel like such a n00b.
    MS SQL server is just a database backend.

    The ability to wrap queries in STORED PROCEDURES and the ability to have IF/blocks and GOTO and LABEL and LOOPS in those STORED PROCEDURES makes them "little mini-programs".

    What's great about that is you now have the backend database have the ability to perform some logic - "calculate this", "archive that" - pretty much whatever you can imagine.

    But with all that said, you still get no USER INTERFACE from MS SQL SERVER. That's where the front-end - VB6, VB.NET - even ACCESS - can be used to display data to the user and process user actions.

    Yes - the integration is probably stronger with VB.Net and MS SQL then with VB6 and MS SQL, but we still prefer to develop all our SQL (or T-SQL) code outside of the user interface. When you bind a control to the data you hide some of the functionality and thus limit some of your abilities. Yes you can bind controls to tables and whip out simple UI's quickly - but that's just not what we do here.

    *** Read the sticky in the DB forum about how to get your question answered quickly!! ***

    Please remember to rate posts! Rate any post you find helpful - even in old threads! Use the link to the left - "Rate this Post".

    Some Informative Links:
    [ SQL Rules to Live By ] [ Reserved SQL keywords ] [ When to use INDEX HINTS! ] [ Passing Multi-item Parameters to STORED PROCEDURES ]
    [ Solution to non-domain Windows Authentication ] [ Crazy things we do to shrink log files ] [ SQL 2005 Features ] [ Loading Pictures from DB ]

    MS MVP 2006, 2007, 2008

  13. #13

    Thread Starter
    Hyperactive Member
    Join Date
    May 2005
    Posts
    258

    Re: SQL Server 2005

    So basically, if I am understanding you, SQL STORED PROCEDURES are equivilent to a module in VB where you can write all your code. How do those get run if there is no interface to make them run? When you bind to a stored procedure, is it just like binding to a record in a DB through ADO.NET?
    Currently Using: VS 2005 Professional

  14. #14
    MS SQL Powerposter szlamany's Avatar
    Join Date
    Mar 2004
    Location
    Connecticut
    Posts
    18,263

    Re: SQL Server 2005

    Post #2 in this thread:

    http://www.vbforums.com/showthread.p...&highlight=gcn

    shows how to use VB6/ADO to call a SPROC and how to define the SPROC.

    The SPROC definition is really just the CREATE PROCEDURE-through-the-GO statement. The rest is just boilerplate we use to drop/re-create and grant user access to the SPROC.

    And another thread:

    http://www.vbforums.com/showthread.p...&highlight=gcn

    and another...

    http://www.vbforums.com/showthread.p...&highlight=gcn

    Search the forum for gcn - that's my standard connection string variable - you will find lots of posts. Also search for FUNDSUSER or STUFILESUSER and you will see lots of examples of SPROCS.

    *** Read the sticky in the DB forum about how to get your question answered quickly!! ***

    Please remember to rate posts! Rate any post you find helpful - even in old threads! Use the link to the left - "Rate this Post".

    Some Informative Links:
    [ SQL Rules to Live By ] [ Reserved SQL keywords ] [ When to use INDEX HINTS! ] [ Passing Multi-item Parameters to STORED PROCEDURES ]
    [ Solution to non-domain Windows Authentication ] [ Crazy things we do to shrink log files ] [ SQL 2005 Features ] [ Loading Pictures from DB ]

    MS MVP 2006, 2007, 2008

  15. #15

    Thread Starter
    Hyperactive Member
    Join Date
    May 2005
    Posts
    258

    Re: SQL Server 2005

    Kewlness, thanks for the great info!
    Currently Using: VS 2005 Professional

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width