Viewing 15 posts - 6,721 through 6,735 (of 10,144 total)
Adi Cohn-120898 (8/22/2011)
The book is wrong...
Quote from BOL, SQL server 2k8:
nchar [ ( n ) ]
Fixed-length Unicode character data of n characters. n must be a value from 1...
August 22, 2011 at 4:39 am
andrew.sugden (8/21/2011)
...Is writing a trigger on an INSERT the best way to notify Users and is it possible to compare data entered with data in another table?...
Client-side data entry validation....
August 22, 2011 at 4:36 am
It's explained reasonably well in BOL.
n is the number of characters, which for CHAR(n) datatype is the same as the storage requirement in bytes. The storage requirement is 2xn...
August 22, 2011 at 4:27 am
There's an interesting article on MSDN covering nested transactions:
August 22, 2011 at 3:30 am
One last point - the sequence table which holds the next sequence number for table gltrx_all. Below is a rewrite which will accelerate the update/read:
...
August 22, 2011 at 3:01 am
Thanks for the generous feedback, troe_atl. I'd agree with Sean's comments; lurk here from time to time, try resolving a few issues yourself - you don't have to post until...
August 19, 2011 at 9:53 am
Close. I've moved some workings to outside of the transaction to mimimise the transaction duration (and any resources which might be unnecessarily affected).
USE [ISPurchasing]
GO
/****** Object: StoredProcedure [dbo].[cust_CreateJournalEntrymod] ...
August 19, 2011 at 7:55 am
Not so fast! We're not done yet! It still requires a transaction for those table updates, and a try-catch block to make it all work nicely....
August 19, 2011 at 7:17 am
-- Let's see what the date arithmetic is for:
select DATEDIFF(mm,0,getdate()) -- months since day 0
select DATEADD(mm, DATEDIFF(mm,0,getdate())-1,0) -- first day of last month
SELECT DATEADD(s,0,DATEADD(mm, DATEDIFF(mm,0,getdate())-1,0)) -- first day of last...
August 19, 2011 at 5:58 am
Ninja's_RGR'us (8/19/2011)
Quite easy with a calendar table.Select top 1 * FROM dbo.Calendar WHERE Y = 2011 AND DW = <whatever fits your setting> ORDER BY dt.
Just as easy without. Make...
August 19, 2011 at 3:51 am
troe_atl (8/18/2011)
August 19, 2011 at 2:46 am
ChrisM@Work (8/18/2011)
...This incorporates many of the changes suggested to date and replaces the cursor with a local temporary table...
Troe_atl, we still have to enclose the inserts within a transaction and...
August 18, 2011 at 10:08 am
What action are you attempting to perform here?
August 18, 2011 at 9:42 am
Hello
Have a read of the link in my sig for general guidelines on posting. Included in this is a suggestion for the creation of sample data for folks to test...
August 18, 2011 at 7:19 am
Viewing 15 posts - 6,721 through 6,735 (of 10,144 total)