Viewing 15 posts - 31 through 45 (of 144 total)
Set it up in development.
Make the changes.
Try your best to take advantage of the new rights.
September 10, 2013 at 5:05 am
You'll need to provide a bit more info.
Script it all out for us (Check, create, insert, query clean up) and show examples of the output you're wanting.
Check out the link...
September 10, 2013 at 4:58 am
Thanks Erland!!
sp_ServerOption is exactly what I need.
EXEC sp_serveroption '<LinkedServer>', 'remote proc transaction promotion', 'false'
September 10, 2013 at 3:04 am
Koen's query is much easier, but here's my alternate query anyway.
WITH cteRoles
AS
(
SELECTROW_NUMBER() OVER (PARTITION BY Name ORDER BY NAME) RowNr,
Name,
Role
FROMSample
)
SELECTName
FROMcteRoles
WHERERowNr = 2
September 10, 2013 at 1:23 am
Here's another method.
DECLARE @StartVarchar(5) = '07:00',
@EndVarchar(5) = '05:59'
SELECTCASE
WHEN REPLACE(@Start, ':', '') < REPLACE(@End, ':','')
THEN DATEDIFF(HH, CAST('1900-01-01 '+ @Start AS SmallDateTime), CAST('1900-01-01 ' + @End AS SmallDateTime)) + 1...
September 10, 2013 at 1:15 am
Actually after rereading my code, it does NOT examine TEXT data and give a more appropriate data type.
Only suggest similar data types for text. I.e. Text to ==>> char, nchar,...
September 9, 2013 at 3:59 am
Erland's code works fine for me as well.
SQL 2012 Express Edition.
September 9, 2013 at 3:52 am
I do have an extremely heavy work in progress that may be of some help.
Haven't looked at it in a while as it was giving me headaches.
The idea is to...
September 9, 2013 at 3:17 am
If you do it manually, you can use the following syntax (without the space).
[ url=http://technet.microsoft.com/en-us/library/ms190356.aspx]SET Statements (Transact-SQL)[/url]
Thanks Luis!!
September 5, 2013 at 12:44 am
Thanks for your comments guys.
Unfortunately PiMané's suggestion doesn't work as it is still getting parse and failing due to the unknown column name.
IF @@VERSION LIKE '%2005%'
BEGIN
EXEC('SELECTCASE
WHEN RIGHT(LEFT(@@VERSION, 25), 4)...
September 5, 2013 at 12:40 am
Can handle the first 2 IDs but the last one is tricky.
I don't know where to split the flight(s) there from the flight(s) back.
Anyway, this is the function I've come...
September 4, 2013 at 9:09 am
Only got ID 5 working so far. This is just a pointer in the right a direction whilst I have a crack at the other ones.
DECLARE@StringVarchar(50) = 'MEL/SYD*SYD/MEL',
@TempVarchar(50),
@CurPortVarchar(3),
@ResultVarchar(50) = ''
SET...
September 4, 2013 at 8:12 am
Are you able to put a try catch block around your SP and use SCOPE_IDENTITY()
September 4, 2013 at 7:33 am
What's the best way to store the XML?
An XML data type
http://msdn.microsoft.com/en-us/library/ms187339%28v=sql.120%29.aspx
September 4, 2013 at 7:19 am
Viewing 15 posts - 31 through 45 (of 144 total)