Showing posts with label learning. Show all posts
Showing posts with label learning. Show all posts

Wednesday, March 28, 2012

Newbie question about SQL Server 2005

Hi,

I have a very newbie question.

I have been only developing websites locally on my computer (during my learning curve) and never actually put anything up in a server on internet, but I just bought a server from discountasp.net and an extra SQL 2005 Database.

Now I need to put my database on that server (copy the local one) I know I have a connection string and username and password. But I really do not have any ideas how to do this.

I would appreciate if you tell me where to start and what I should do at this stage.

Thank you and have a good day.

Use SQL Server 2005 Management Studio to connect to your databse on server. And after that you can import the databse from local database.|||Thank you, but is there any tutorials explaining this in more detail ?|||

Hi,

This tutorial might prove useful on the issue of migrating databases:

http://msdn2.microsoft.com/en-us/library/ms188032.aspx

Cheers

|||

The tutorial may help.

http://aspnet.4guysfromrolla.com/articles/050907-1.aspx

Monday, March 26, 2012

Newbie Question

Hi

I'm working with SQL Express, and this is my first experience with DB, so I'm still learning. I made a rather stupid mistake, and I'm not quite sure how to get out of it. In the process of trying to fix a problem, I changed the default DB in my account to one that it can no longer connect to - for a reason unknown to me. (once I get this cleared up, I'll ask about that.) Now I can't login properly to SQL Express, b/c it can't connect properly.

please help

thanx

Jeffery

hi,

yiu should be able to connect via a system administrator login, bot WinNT trusted authenticated (login in in Windows as a local administrator) or standard SQL Server authenticated (if you enabled mixed security) providing sa login's credentials (userid and password)...

once you connect to SQLExpress, you can modify (via SSMSX) the default database property of the faling login object in the general tab or, executing the

ALTER LOGIN login_name
WITH DEFAULT_DATABASE = new_default_db;

Transact-SQL statement..

regards

|||Thanx...

Duh! - to me - I should have thought of creating another local Admin account.

Thanx - it worked.

Monday, March 19, 2012

newbie needs help

Hello all, I'm learning SQL and need help with a query. I have a table that
stores employee ID and values per a given year. EmplID is stored in field 1
,
Yr1 val in field 2, Yr2 val in field 3... and so on up to any given number o
f
Yr fields. Not all of the Yr values exist for all Yr fields. I need to be
able to to pull the most recent value for a given row/record. So, for
instance, if EmplID ABCD stores the following:
EmplID Yr1 Yr2 Yr3 Yr4
ABCD 41 42 43 0
I need to pull 41 if Yr1 is the most recent year.
If Emplid EFGH stores the following:
EmplID Yr1 Yr2 Yr3 Yr4
EFGH 0 42 0 0
I need to pull 42, the Yr2 value, because no value exists for Yr1.
I am using SQL Server on a WinXP box. Any help would be greatly appreciated
.First of all, this is a poor design for a table. What are you doing,
continually adding new fields (we call them columns, or attributes) each
year? Better would be to have a column named "Year".
EmplID Year Value
ABCD 1 41
ABCD 2
You should, when possible, learn a bit about data modeling and
normalization... But
"kiloez" wrote:
> Hello all, I'm learning SQL and need help with a query. I have a table th
at
> stores employee ID and values per a given year. EmplID is stored in field
1,
> Yr1 val in field 2, Yr2 val in field 3... and so on up to any given number
of
> Yr fields. Not all of the Yr values exist for all Yr fields. I need to b
e
> able to to pull the most recent value for a given row/record. So, for
> instance, if EmplID ABCD stores the following:
> EmplID Yr1 Yr2 Yr3 Yr4
> ABCD 41 42 43 0
> I need to pull 41 if Yr1 is the most recent year.
> If Emplid EFGH stores the following:
> EmplID Yr1 Yr2 Yr3 Yr4
> EFGH 0 42 0 0
> I need to pull 42, the Yr2 value, because no value exists for Yr1.
> I am using SQL Server on a WinXP box. Any help would be greatly appreciated.[/col
or]|||Sorry submitted that before done...
First of all, this is a poor design for a table. What are you doing,
continually adding new fields (we call them columns, or attributes) each
year? Better would be to have a column named "Year".
EmplID Year Value
ABCD Yr1 41
ABCD Yr2 42
ABCD Yr3 43
ABCD Yr4 44
etc. .............
Second, what is Yr1, Yr2, Yr3, Yr4, mean ? Are these the actual column
names in your table? Do they map to actual years spmewhere else in your data
model?
When possible, you should learn a bit about data modeling and
normalization...
Given your problem, a solution based on the columns that exist in the table
right now would break when you add a new column for Yr5, unless the solution
was constructed to treat the "YrN" columns dynamically. That type of
solution would have to read system tables to determine which YR columns
existed, and then write dynamic sql to execute against the table.. A complex
but doable task. It would be much simpler (and therefore quicker more cost
effective) to restructure the data correctly.
"kiloez" wrote:
> Hello all, I'm learning SQL and need help with a query. I have a table th
at
> stores employee ID and values per a given year. EmplID is stored in field
1,
> Yr1 val in field 2, Yr2 val in field 3... and so on up to any given number
of
> Yr fields. Not all of the Yr values exist for all Yr fields. I need to b
e
> able to to pull the most recent value for a given row/record. So, for
> instance, if EmplID ABCD stores the following:
> EmplID Yr1 Yr2 Yr3 Yr4
> ABCD 41 42 43 0
> I need to pull 41 if Yr1 is the most recent year.
> If Emplid EFGH stores the following:
> EmplID Yr1 Yr2 Yr3 Yr4
> EFGH 0 42 0 0
> I need to pull 42, the Yr2 value, because no value exists for Yr1.
> I am using SQL Server on a WinXP box. Any help would be greatly appreciated.[/col
or]|||First off my dear friend, you might want to re-evaluate the database design.
You have just violated the second normal form (or is it the third? I get
) Anyways, the best solution would be to move your data to another
table and drop this table here.
I would suggest the following design for your table
CREATE TABLE Emp_Details (
EmpID int NOT NULL,
Year char(4) NOT NULL,
Value int NOT NULL DEFAULT 0
)
Then, populate it as follows:
INSERT INTO Emp_Details
SELECT EmplID, 'Yr1', Yr1
FROM Emp_Table
INSERT INTO Emp_Details
SELECT EmplID, 'Yr2', Yr2
FROM Emp_Table
INSERT INTO Emp_Details
SELECT EmplID, 'Yr3', Yr3
FROM Emp_Table
INSERT INTO Emp_Details
SELECT EmplID, 'Yr4', Yr4
FROM Emp_Table
and so on...
now you have a sensible looking table. you may want to drop your old table
and rename this table. Let everyone know that you have just got some sensibl
e
table design done and that the applications need to change the way they
access data.
Once this is done, you can run the following query:
SELECT Emp_ID, MAX(Year), Value
FROM Emp_Details
WHERE (Value <> 0)
GROUP BY Emp_ID, Value
--that said, if you want a quick fix or boss is not willing to let go of
his ideas of 3NF, you can run this query:
SELECT EmplID,
CASE
WHEN (Yr1 <> 0) THEN Yr1
ELSE
CASE
WHEN (Yr2 <> 0) THEN Yr2
ELSE
CASE
WHEN (Yr3 <> 0) THEN Yr3
ELSE Yr4
END CASE
END CASE
END CASE
FROM Empl_Details
Hope that helps,
Aneesh.
"kiloez" wrote:
> Hello all, I'm learning SQL and need help with a query. I have a table th
at
> stores employee ID and values per a given year. EmplID is stored in field
1,
> Yr1 val in field 2, Yr2 val in field 3... and so on up to any given number
of
> Yr fields. Not all of the Yr values exist for all Yr fields. I need to b
e
> able to to pull the most recent value for a given row/record. So, for
> instance, if EmplID ABCD stores the following:
> EmplID Yr1 Yr2 Yr3 Yr4
> ABCD 41 42 43 0
> I need to pull 41 if Yr1 is the most recent year.
> If Emplid EFGH stores the following:
> EmplID Yr1 Yr2 Yr3 Yr4
> EFGH 0 42 0 0
> I need to pull 42, the Yr2 value, because no value exists for Yr1.
> I am using SQL Server on a WinXP box. Any help would be greatly appreciated.[/col
or]|||Thanks for the help guys. I had nothing to do with the design and
development of the DB. I was only asked to query some of the tables.
Aneesh, the quick fix was perfect for what I was looking to accomplish.
Worked out just fine.
Many thanks,
kiloez
"Aneesh Aravind" wrote:
> First off my dear friend, you might want to re-evaluate the database desig
n.
> You have just violated the second normal form (or is it the third? I get
> ) Anyways, the best solution would be to move your data to another
> table and drop this table here.
> I would suggest the following design for your table
> CREATE TABLE Emp_Details (
> EmpID int NOT NULL,
> Year char(4) NOT NULL,
> Value int NOT NULL DEFAULT 0
> )
> Then, populate it as follows:
> INSERT INTO Emp_Details
> SELECT EmplID, 'Yr1', Yr1
> FROM Emp_Table
> INSERT INTO Emp_Details
> SELECT EmplID, 'Yr2', Yr2
> FROM Emp_Table
> INSERT INTO Emp_Details
> SELECT EmplID, 'Yr3', Yr3
> FROM Emp_Table
> INSERT INTO Emp_Details
> SELECT EmplID, 'Yr4', Yr4
> FROM Emp_Table
> and so on...
> now you have a sensible looking table. you may want to drop your old table
> and rename this table. Let everyone know that you have just got some sensi
ble
> table design done and that the applications need to change the way they
> access data.
> Once this is done, you can run the following query:
> SELECT Emp_ID, MAX(Year), Value
> FROM Emp_Details
> WHERE (Value <> 0)
> GROUP BY Emp_ID, Value
> --that said, if you want a quick fix or boss is not willing to let go of
> his ideas of 3NF, you can run this query:
> SELECT EmplID,
> CASE
> WHEN (Yr1 <> 0) THEN Yr1
> ELSE
> CASE
> WHEN (Yr2 <> 0) THEN Yr2
> ELSE
> CASE
> WHEN (Yr3 <> 0) THEN Yr3
> ELSE Yr4
> END CASE
> END CASE
> END CASE
> FROM Empl_Details
> Hope that helps,
> Aneesh.
> "kiloez" wrote:
>

Monday, March 12, 2012

Newbie help with joins

I am learning vb.net and ms sql (2000 evaluation version); I can't get my joins to work in Tsql:

select m.lname,m.fname,m.idno,m.payorno,p.payorno.p.payor name
from dbtemp..d_mbrdata m join dbtemp..d_payors p
on (m.payorno = p.payorno)

inner join query returns no records at all. left outerjoin returns the mbrdata fields, but the payors fields show as null. payorno in both tables is type integer and both tables definitely have matching records. I created index for both tables on payorno.

Does anyone have an idea what i am doing wrong here? Thanks.There is nothing wrong with query. If left join returns some data - problem is in second table (matching records).

Just run this query (without join):

select *
from dbtemp..d_mbrdata
where payorno in (select distinct payorno from dbtemp..d_payors)|||Yeah, from the way u'r describing u'r results, it seems there is no m.payorno that is equal to p.payorno.

Maybe u can try debuggin further by inserting a new record into both this tables with a "confirm" identical payorno and do your select join statement again.
It should return 1 joined record.|||Try running this and see what key values are returned:
select m.payorno, p.payorno
from dbtemp..d_mbrdata m
full outer join dbtemp..d_payors p on (m.payorno = p.payorno)
where mpayrono is null or p.payorno is null

blindman

Friday, March 9, 2012

Newbie BIDS questions

I've been learning SSIS and the BIDS for a few weeks now and there are 2 things that really annoy me. I'm hoping that there is a setting or option or something that I'm missing.

1. I place objects on the Control Flow surface, get everything arranged the way I want it, constraint lines all nice and tidy and then save it. When I open it things aren't the way they were when I closed it. Any way to make them stay the same?

2. If I select multiple objects and copy them when I paste them they are in really interesting places. Any way to have them stay in the same realitive positions?

This is one of the most helpful forums I've ever posted in so thanks to you all for the assistance.

John Colaizzi

John Colaizzi wrote:

I've been learning SSIS and the BIDS for a few weeks now and there are 2 things that really annoy me. I'm hoping that there is a setting or option or something that I'm missing.

1. I place objects on the Control Flow surface, get everything arranged the way I want it, constraint lines all nice and tidy and then save it. When I open it things aren't the way they were when I closed it. Any way to make them stay the same?

I cna't repro this problem. I admit when I open it the scrolling sometimes put me in a funny position but the objects are still in the same place in relation to each other. Fix the "scroleld to the wrong place" problem by going Edit-->Zoom-->To Fit.

John Colaizzi wrote:

2. If I select multiple objects and copy them when I paste them they are in really interesting places. Any way to have them stay in the same realitive positions?

Unfortunately not. Annoying isn't it?

John Colaizzi wrote:

This is one of the most helpful forums I've ever posted in so thanks to you all for the assistance.

John Colaizzi

|||

Jamie,

Are you saying that if you create a task, then create two more, drag constraint lines to each of the two more tasks, move the lines around, save and come back the lines are where you put them?

Here is a before:

and after:

It seems to happen mostly where I've changed anchor points or moved the lines so they don't cross directly over another object, especially a task.

Also, if I change an anchor point on the first object and then move the second object the lines redraw with the original anchor point. It almost seems pointless to move the lines at all :(

John

|||Did you ever find a fix for #1...? It's really annoying to organize my diagram only to have it revert back upon being closed and reopened...|||

I honestly don't ever find this to be a problem. Perhaps its because I always use the Auto-layout feature.

-Jamie

|||Unfortunately, my package is almost unreadable when 'auto arranged'... it's easy enough to arrange/move connections to improve it, but once I close and reopen the package it is all lost...

Newbie BIDS questions

I've been learning SSIS and the BIDS for a few weeks now and there are 2 things that really annoy me. I'm hoping that there is a setting or option or something that I'm missing.

1. I place objects on the Control Flow surface, get everything arranged the way I want it, constraint lines all nice and tidy and then save it. When I open it things aren't the way they were when I closed it. Any way to make them stay the same?

2. If I select multiple objects and copy them when I paste them they are in really interesting places. Any way to have them stay in the same realitive positions?

This is one of the most helpful forums I've ever posted in so thanks to you all for the assistance.

John Colaizzi

John Colaizzi wrote:

I've been learning SSIS and the BIDS for a few weeks now and there are 2 things that really annoy me. I'm hoping that there is a setting or option or something that I'm missing.

1. I place objects on the Control Flow surface, get everything arranged the way I want it, constraint lines all nice and tidy and then save it. When I open it things aren't the way they were when I closed it. Any way to make them stay the same?

I cna't repro this problem. I admit when I open it the scrolling sometimes put me in a funny position but the objects are still in the same place in relation to each other. Fix the "scroleld to the wrong place" problem by going Edit-->Zoom-->To Fit.

John Colaizzi wrote:

2. If I select multiple objects and copy them when I paste them they are in really interesting places. Any way to have them stay in the same realitive positions?

Unfortunately not. Annoying isn't it?

John Colaizzi wrote:

This is one of the most helpful forums I've ever posted in so thanks to you all for the assistance.

John Colaizzi

|||

Jamie,

Are you saying that if you create a task, then create two more, drag constraint lines to each of the two more tasks, move the lines around, save and come back the lines are where you put them?

Here is a before:

and after:

It seems to happen mostly where I've changed anchor points or moved the lines so they don't cross directly over another object, especially a task.

Also, if I change an anchor point on the first object and then move the second object the lines redraw with the original anchor point. It almost seems pointless to move the lines at all :(

John

|||Did you ever find a fix for #1...? It's really annoying to organize my diagram only to have it revert back upon being closed and reopened...|||

I honestly don't ever find this to be a problem. Perhaps its because I always use the Auto-layout feature.

-Jamie

|||Unfortunately, my package is almost unreadable when 'auto arranged'... it's easy enough to arrange/move connections to improve it, but once I close and reopen the package it is all lost...

Newbie backup question

I just start learning how to use SQL Server 2000.
A question about transaction log backup:
There is a full backup on Sunday night and differential backup from Monday
to Saturday night. Transaction log backup on 9am, 12pm, 3pm, 6pm on
weekdays.
Just wonder is the transaction log at 6pm on Saturday night containing all
transactions from Monday to Friday of the same week ?Nope, the log is emptied each time you do a backup. So the 6PM log backup contains the transactions
produced on sat from 3pm to 6pm (roughly).
--
Tibor Karaszi, SQL Server MVP
Archive at: http://groups.google.com/groups?oi=djq&as ugroup=microsoft.public.sqlserver
"Alan" <alanpltse@.yahoo.com.au> wrote in message news:e7T46DlhDHA.1864@.TK2MSFTNGP10.phx.gbl...
> I just start learning how to use SQL Server 2000.
> A question about transaction log backup:
> There is a full backup on Sunday night and differential backup from Monday
> to Saturday night. Transaction log backup on 9am, 12pm, 3pm, 6pm on
> weekdays.
> Just wonder is the transaction log at 6pm on Saturday night containing all
> transactions from Monday to Friday of the same week ?
>|||To restore your DB to Saturday post log backup you will need
Sunday Full
Friday Differential (Differences between last Full backup and now)
Saturday Logs(9,12,3,6)
BOL has a good example
Differential Backup and Restore
A differential backup creates a copy of all the pages in a database modified
after the last database backup. Differential logs are used primarily in
heavily used systems where a failed database must be brought back online
quickly. Differential backups are smaller than full database backups;
therefore, they have less of an effect on the system while they run.
For example, a site executes a full database backup on Sunday night. A set
of transaction log backups is made every four hours during the day, with the
backups from one day overwriting the backups from the day before. Each night
the site makes a differential backup. If one of the data disks for the
database fails at 9:12 A.M. on Thursday, the site can:
1.. Back up the current transaction log.
2.. Restore the database backup from Sunday night.
3.. Restore the differential backup from Wednesday night to roll the
database forward to that point.
4.. Restore the transaction log backups from 4:00 A.M. and 8:00 A.M. to
roll the database forward to 8:00 A.M.
5.. Restore the log backup taken after the failure. This will roll the
database forward to the time of the failure
--
--
Allan Mitchell (Microsoft SQL Server MVP)
MCSE,MCDBA
www.SQLDTS.com
I support PASS - the definitive, global community
for SQL Server professionals - http://www.sqlpass.org
"Alan" <alanpltse@.yahoo.com.au> wrote in message
news:e7T46DlhDHA.1864@.TK2MSFTNGP10.phx.gbl...
> I just start learning how to use SQL Server 2000.
> A question about transaction log backup:
> There is a full backup on Sunday night and differential backup from Monday
> to Saturday night. Transaction log backup on 9am, 12pm, 3pm, 6pm on
> weekdays.
> Just wonder is the transaction log at 6pm on Saturday night containing all
> transactions from Monday to Friday of the same week ?
>

Wednesday, March 7, 2012

Newbie *easy/stupid?* question

Hi everyone,
I'm just learning sql and I'm trying to do the following to the pubs database:
For each order that include the books with title_id PC1035 or BU1032, list
the order number, order date, along with title_id, title, and a quantity of
each book included in order. Put the list in order of order date (in
descending order), then title in alphabetical order.
I've never written a query like that (I've done basic queries), but if
anyone can help it'd be appreciated.
Thank you,
Kristen.
Kristen
The following query should help you out:
SELECT s.ord_num, s.ord_date, s.title_id, t.title, s.qty
FROM pubs.dbo.sales s JOIN pubs.dbo.titles t
ON s.title_id = t.title_id
WHERE s.title_id = 'PC1035'
OR s.title_id = 'BU1032'
ORDER BY s.ord_date DESC, t.title ASC
- Peter Ward
WARDY IT Solutions
"Kristen" wrote:

> Hi everyone,
> I'm just learning sql and I'm trying to do the following to the pubs database:
> For each order that include the books with title_id PC1035 or BU1032, list
> the order number, order date, along with title_id, title, and a quantity of
> each book included in order. Put the list in order of order date (in
> descending order), then title in alphabetical order.
> I've never written a query like that (I've done basic queries), but if
> anyone can help it'd be appreciated.
> Thank you,
> Kristen.

Newbie *easy/stupid?* question

Hi everyone,
I'm just learning sql and I'm trying to do the following to the pubs databas
e:
For each order that include the books with title_id PC1035 or BU1032, list
the order number, order date, along with title_id, title, and a quantity of
each book included in order. Put the list in order of order date (in
descending order), then title in alphabetical order.
I've never written a query like that (I've done basic queries), but if
anyone can help it'd be appreciated.
Thank you,
Kristen.Kristen
The following query should help you out:
SELECT s.ord_num, s.ord_date, s.title_id, t.title, s.qty
FROM pubs.dbo.sales s JOIN pubs.dbo.titles t
ON s.title_id = t.title_id
WHERE s.title_id = 'PC1035'
OR s.title_id = 'BU1032'
ORDER BY s.ord_date DESC, t.title ASC
- Peter Ward
WARDY IT Solutions
"Kristen" wrote:

> Hi everyone,
> I'm just learning sql and I'm trying to do the following to the pubs datab
ase:
> For each order that include the books with title_id PC1035 or BU1032, list
> the order number, order date, along with title_id, title, and a quantity o
f
> each book included in order. Put the list in order of order date (in
> descending order), then title in alphabetical order.
> I've never written a query like that (I've done basic queries), but if
> anyone can help it'd be appreciated.
> Thank you,
> Kristen.

Newbie *easy/stupid?* question

Hi everyone,
I'm just learning sql and I'm trying to do the following to the pubs database:
For each order that include the books with title_id PC1035 or BU1032, list
the order number, order date, along with title_id, title, and a quantity of
each book included in order. Put the list in order of order date (in
descending order), then title in alphabetical order.
I've never written a query like that (I've done basic queries), but if
anyone can help it'd be appreciated.
Thank you,
Kristen.Kristen
The following query should help you out:
SELECT s.ord_num, s.ord_date, s.title_id, t.title, s.qty
FROM pubs.dbo.sales s JOIN pubs.dbo.titles t
ON s.title_id = t.title_id
WHERE s.title_id = 'PC1035'
OR s.title_id = 'BU1032'
ORDER BY s.ord_date DESC, t.title ASC
- Peter Ward
WARDY IT Solutions
"Kristen" wrote:
> Hi everyone,
> I'm just learning sql and I'm trying to do the following to the pubs database:
> For each order that include the books with title_id PC1035 or BU1032, list
> the order number, order date, along with title_id, title, and a quantity of
> each book included in order. Put the list in order of order date (in
> descending order), then title in alphabetical order.
> I've never written a query like that (I've done basic queries), but if
> anyone can help it'd be appreciated.
> Thank you,
> Kristen.

Monday, February 20, 2012

Newbie

Hello everyone, am new to databases. Started of learning SQL on my own
and using SQL Server 2k... any pointers from ya'll abt my approach...
got familiar with some basic stuff abt SQL and SQL Server.. hope all of
you would gimme good suggestions..Mad wrote:
> Hello everyone, am new to databases. Started of learning SQL on my own
> and using SQL Server 2k... any pointers from ya'll abt my approach...
> got familiar with some basic stuff abt SQL and SQL Server.. hope all of
> you would gimme good suggestions..

Good suggestions about what?|||depends on what you know about suggesting someone asking you a
question, seems by your question that u needs suggestions as well...
thats nice... and abt " Good suggestions about what? " -- reead this
"am new to databases. Started of learning SQL on my own
and using SQL Server 2k... any pointers from ya'll abt my approach...
".. i requested for suggestions about hw to start things off...
something that you might want to put in thinking of how u started
off... take care ZeldorBlat|||On 16 Jan 2006 06:55:55 -0800, Mad wrote:

>Hello everyone, am new to databases. Started of learning SQL on my own
>and using SQL Server 2k... any pointers from ya'll abt my approach...
>got familiar with some basic stuff abt SQL and SQL Server.. hope all of
>you would gimme good suggestions..

Hi Mad,

Here are some good places to start:

http://www.amazon.com/exec/obidos/s...Go.x=12&Go.y=13

http://www.amazon.com/exec/obidos/s...Go.x=13&Go.y=15

Probably not what you hoped for, but the subjects of SQL and SQL Server
are just too broad and too complicated to be explained in a newsgroup
message.

--
Hugo Kornelis, SQL Server MVP|||Start with a book on RDBMS basics, so you have a foundation. You will
probably also have to learn how to think in a declarative progamming
language. I find that takes about a year of full-time coding and some
people never get it.

After that, get an intro book on SQL and apy attention to the syntax
quirks.

After you get thru that book, get a copy of SQL FOR SMARTIES for the
advanced programming tricks.|||> After you get thru that book, get a copy of SQL FOR SMARTIES for the
> advanced programming tricks.

But, be warned this book is based on standard SQL so a lot of the examples
won't work or there are better ways of coding using some of the built-in
functions of SQL Server.

Check out some of Itzik-Ben Gan's books which are more appropriate to SQL
Server and contain far better and more scalable examples.

--
Tony Rogerson
SQL Server MVP
http://sqlserverfaq.com - free video tutorials

"--CELKO--" <jcelko212@.earthlink.net> wrote in message
news:1137459934.454621.116470@.o13g2000cwo.googlegr oups.com...
> Start with a book on RDBMS basics, so you have a foundation. You will
> probably also have to learn how to think in a declarative progamming
> language. I find that takes about a year of full-time coding and some
> people never get it.
> After that, get an intro book on SQL and apy attention to the syntax
> quirks.
> After you get thru that book, get a copy of SQL FOR SMARTIES for the
> advanced programming tricks.