Viewing 15 posts - 16 through 30 (of 134 total)
The best way to do this is using a table with positive numbers. This way you can avoid using cursors, and even create a view.
This sql script ( test it...
March 30, 2006 at 12:52 am
To avoid the problem, I use my function dbo.fn_getdate(). This function can be used in other functions:
script ( create it in master, and call fn_getdate as master.dbo.fn_getdate() ) :
create table...
December 22, 2005 at 1:26 am
For this to work, your xml should be like :
<root>
<screens>
<ScreenId>1</ScreenId><RoleId>1</RoleId>
</screens>
<screens>
<ScreenId>3</ScreenId><RoleId>1</RoleId>
</screens>
<screens>
<ScreenId>7</ScreenId><RoleId>1</RoleId>
</screens>
<screens>
<ScreenId>8</ScreenId><RoleId>1</RoleId>
</screens>
</root>
December 13, 2005 at 12:53 am
I couldn't get it either ...
October 27, 2005 at 11:51 pm
Great article.
I would really like to see how this is implemented, but could not find the download ?
October 27, 2005 at 1:00 am
You can read the xml into a text variable. But you can not declare a text variable in a stored procedure. You can have a parameter of type text, so...
August 8, 2005 at 10:50 am
For a function, you have to give all the parameters. You can use default to specify you want to use the default value : select @a =dbo.ufn_test(DEFAULT)
Bert
July 14, 2005 at 11:53 pm
I tried that before proposing upper(). I tried it using an english alphabet ... and it does not work with '%[a-z]%'. I do not understand why ...
Bert
July 1, 2005 at 1:19 pm
You can also use
where somecode != upper(somecode) COLLATE SQL_Latin1_General_CP1_CS_AS
July 1, 2005 at 12:48 am
It depends of the numer of data to be inserted in the table. If you create the clustered index first, the server has to find first where to insert the...
May 12, 2005 at 12:49 am
If you want to increase performance, creating an index that will never be used makes no sense.
I would replace one of the non clustered indexes by a clustered index. But again,...
May 12, 2005 at 12:34 am
Can you try this script ? :
set nocount on
go
if object_id('dbo.person_identif_test') is not null drop table dbo.person_identif_test
go
create table dbo.person_identif_test
(
--id int not null identity(1,1),
person_id...
April 29, 2005 at 1:16 am
You do not need dynamic sql to do this. You can crate the table with a dummy name first, and use sp_rename to give it the name you want :
declare...
April 22, 2005 at 12:51 am
This is a new script. The first part ( up to the first go ) creates the stored procedure. This should only be executed once. The part after the go...
April 20, 2005 at 6:46 am
Viewing 15 posts - 16 through 30 (of 134 total)