Viewing 15 posts - 301 through 315 (of 424 total)
from the docs:
NOLOCK
Does not issue any locks. This is the default for SELECT operations. It does not apply to INSERT, UPDATE, and DELETE statements.
Note:
With SQL Server, a NOLOCK...
February 28, 2008 at 11:19 am
hi beeke.
you can't insert/update/delete data with a function. you'll have to use a stored procedure instead. this sample code below should get you started.
create table movements (
...
February 27, 2008 at 9:56 am
CREATE PARTITION FUNCTION pfNameRange(char(20))
AS RANGE RIGHT FOR VALUES ('E', 'I', 'N','T');
would divide the data into 5 partitions:
1: < 'E'
2: >= 'E' and < 'I'
3: >= 'I' and < 'N'
4:...
February 25, 2008 at 2:10 pm
is the forum for a school work assignment, or is the forum to be used by your school?
if it will be used by your school there are quite a few...
February 25, 2008 at 1:57 pm
myschif (2/25/2008)
Adam - I tried your code and received the following message:
Must declare the scalar variable "@PreGrpBal"
I am unsure how to resolve this.
Additionally, I do...
February 25, 2008 at 1:43 pm
also look at this thread: http://www.sqlservercentral.com/Forums/Topic453576-149-1.aspx
February 21, 2008 at 3:49 pm
although deprecated, you can still use it. just get it from the SS installation disc.
February 21, 2008 at 3:46 pm
February 21, 2008 at 8:30 am
you have an embedded OpenQuery() that's causing the problem. eliminate it and it should be fine.
'Select CCNVFC From BPCSFFG.GCC
Where CCFRCR = ''USD''
And CCTOCR = ''PLN''
And CCRTYP = ''MTHEND''
And CCDATE...
February 21, 2008 at 8:17 am
Saravanakumar.Rathinam (2/20/2008)
It takes the Index scan eventhough 'sCustomerSys' column is Clustered Index.Please suggest if any alternative query on these ?
The case statement prevents the search on sCustomerSys from being optimized....
February 20, 2008 at 10:55 am
if i understand you, the stored procedure will be updating a target table and a trigger on that table will adding data to an audit table.
if so, why...
February 20, 2008 at 9:08 am
awells (2/20/2008)
I have a sp that inserts on average 400+ records per batch. The...
February 20, 2008 at 8:53 am
change
SELECT x.i.value('.', 'VARCHAR(7)') as ID
to
SELECT x.i.value('.', 'int') as ID
if your IDs are indeed ints and not text.
February 20, 2008 at 7:03 am
lfmn (2/19/2008)
February 19, 2008 at 3:53 pm
Viewing 15 posts - 301 through 315 (of 424 total)