Viewing 15 posts - 1,771 through 1,785 (of 2,038 total)
Hi Sandhya
Here an example:
CREATE TABLE test
(
column1 int not null,
column2 int not null,
CONSTRAINT PK_test PRIMARY KEY CLUSTERED (column1),
CONSTRAINT AK_test_column2...
March 24, 2009 at 1:24 pm
I would also prefer the usage of stored procedures. If you write the SQL to the report you may not be able to assert if all reports still work.
Greets
Flo
March 24, 2009 at 1:10 pm
PhilPacha (3/24/2009)
... it's for a user, and for a fairly large number of entries.
So he is either a power user or I commiserate with him 😛
To your question:
I don't think...
March 24, 2009 at 12:58 pm
Hi
If your sample fits to your business requirement just avoid the nested INSERT-EXECUTE:
USE tempdb
GO
IF (OBJECT_ID('tbl1') IS NOT NULL)
DROP TABLE tbl1
GO
CREATE TABLE tbl1 (id INT, txt VARCHAR(100))
GO
INSERT INTO...
March 24, 2009 at 12:48 pm
Hi
Did you have a look for linked servers? This should be your solution. Here a little sample for the usage:
DECLARE @LinkName SYSNAME SET @LinkName...
March 24, 2009 at 11:35 am
Hi
Sorry, but I don't understand your question. Do you have a DDL and some sample data?
Greets
Flo
March 24, 2009 at 11:10 am
Hi
Some questions:
* Why is the usage of a cursor requirement?
* What is the reason for the recursion?
* Is the requirement that this shall be executed always when new data become...
March 24, 2009 at 10:03 am
Hi
I've never used the OUTPUT feature but had a look to BOL. Seems that it returns the cursor as output.
Why do you not just return the data as SELECT from...
March 24, 2009 at 9:57 am
VM (3/24/2009)
Aah, here's what's to be substituted into @xml.
Perfect! 🙂
Try this:
declare @xml xml
select @xml = '<Test>
<value>50</value>
</Test>'
set @xml.modify('replace value of (/Test/value/text())[1] with "100"')
select @xml
Greets
Flo
March 24, 2009 at 9:17 am
Hi
Maybe just attach a text file with your sample. 😉
Greets
Flo
March 24, 2009 at 8:55 am
Hi
Did you try sp_executesql?
USE tempdb
GO
IF (OBJECT_ID('test') IS NOT NULL)
DROP TABLE test
GO
CREATE TABLE test (id INT, txt VARCHAR(100))
GO
INSERT INTO test
...
March 24, 2009 at 7:58 am
Hi
Please either mask your xml < and > or attach an example file. 😉
Greets
Flo
March 24, 2009 at 7:51 am
Hi
Guideline for calculations in SELECT section is a scalar user defined function instead of a procedure. It may be possible to call a procedure with OPENQUERY but maybe have a...
March 24, 2009 at 4:29 am
Hi
Try this:
DBCC SQLPERF ( LOGSPACE )
Greets
Flo
March 24, 2009 at 4:26 am
Viewing 15 posts - 1,771 through 1,785 (of 2,038 total)