Viewing 15 posts - 121 through 135 (of 142 total)
I assume that a child is also a person. If that is not true then most of what follows will not help you.
You should have a person table with...
September 8, 2008 at 8:15 am
Hi Abhijit,
personally, I think it is a mistake to accept the text of the where clause from the application. First, you are opening a huge security hole for SQL...
September 4, 2008 at 7:55 am
Hi Abhijit,
I don't think you can avoid Dynamic SQL if your intention is to have the application supply the text of the where clause as an input parameter the way...
September 2, 2008 at 1:06 pm
I think the answer depends a lot on the nature of your queries. I have found tables with 6 or more indexes, each on a single foreign key column....
September 2, 2008 at 12:59 pm
I see what you are trying to do but there are several problems that stand in your way. The first one is that you don't have a primary key...
August 29, 2008 at 8:27 am
Your update statement needs to reference the appropriate table alias rather than the actual table name. Once you alias the table in the from clause (which I almost always...
August 29, 2008 at 8:09 am
Spend some time on Paul Randal's web site and blog. http://www.sqlskills.com/default.asp
He and Kimberly Tripp (same site) have a whole series of posts and articles on the "Accidental DBA"...
August 29, 2008 at 7:49 am
The T-Log is a strange and somewhat intractable thing. The log file location and property settings can have a signifcant impact on system performance. If your initial size...
August 21, 2008 at 12:06 pm
This link is to an article about accessing the Previous Row.
It should help you get started. If you search this SQLServerCentral for "Previous Row" you will find a number...
August 21, 2008 at 7:44 am
The easiest way to pass information between batches is with a Temp Table.
So at the beginning of the script you have something like
If Object_Id('TempDB..#ErrorTab) is not null Drop Table #ErrorTab
Create...
August 21, 2008 at 7:22 am
I see at least two paths that Begin Tran and then Return.
In your first conditional block if the password parameter is empty string or null you do a return leaving...
August 20, 2008 at 2:26 pm
Using the RasiError (Error Level < 20) and Return pattern works fine for the "BATCH" but if your script contains multiple batches separated by "Go" then the remaining parts...
August 20, 2008 at 2:15 pm
Hi.
I don't know of any direct way to accomplish what you are trying without using dynamic SQL. You cannot use variables in place of table names, column names, etc...
August 20, 2008 at 1:54 pm
The Code posted is tough but the attached Word document is very good. I think they just cut&pasted the Word text into the post and that just does not...
August 7, 2008 at 7:05 am
Viewing 15 posts - 121 through 135 (of 142 total)