Viewing 12 posts - 16 through 27 (of 27 total)
GilaMonster (4/6/2016)
shaneoneillis (4/6/2016)
Tools --> Options --> SQL Server Object Explorer --> Scripting --> under...
April 6, 2016 at 9:51 am
If you want to include them when you script a table go to the following on SSMS:
Tools --> Options --> SQL Server Object Explorer --> Scripting --> under "Table and...
April 6, 2016 at 4:09 am
Phil Parkin (4/5/2016)
clbishop (4/5/2016)
I need assistance with code that will allow me to change the return order of week names....
April 5, 2016 at 10:08 am
Haha I did exactly that!
Moved from a Limerick company that was brilliant at application programming but saw the database as "dat ting dere you put da stuff into" and...
April 4, 2016 at 6:04 am
LEFT JOIN RejectReason ON RejectReason.PolicyAuditID = PolicyAudit.ID
LEFT JOIN (SELECT TOP (1)
...
March 30, 2016 at 6:03 am
Have you tried wrapping the columns in the QUOTENAME() function, and then specifying that you want them quoted with apostrophes ('')?
QUOTENAME([column_name], '''')
'SELECT ' + QUOTENAME(LTRIM(RTRIM(ClientList.Cust_Id)), '''') + ', ' +...
March 29, 2016 at 10:36 am
My bad, at the start I didn't know what the datatype of the column was.
Should have spotted that in the second post.
Would have made it easier to read, understand...
March 23, 2016 at 8:18 am
No worries, we're all still learning and at least you'll have this tool under your belt now 🙂
March 23, 2016 at 3:18 am
I tried the below in SQL server, I get different results...
select field10,field5,right(replicate('0',2) + REPLACE(QUOTENAME(t.field10, ''''), '''', ''),10) + '-" + t.field5 name_yn
from table2 t
field10 - smallint
field5 - ...
March 22, 2016 at 1:15 pm
You were very close Brad, you just don't need to set the variable equal to each time for the case statement.
Just set it equal to at the start and then...
March 22, 2016 at 11:16 am
Looks good, probably be a bit more helpful if you included what you think the REPLICATE query would go like?
Another option would be to use the RIGHT() function
March 21, 2016 at 11:13 am
I found this one trying to debug some code...I loved it so much that I left it in
SELECT @DEFAULT_DMR =....
--ff**king useless suppliers
DELETE FROM...
without the asterisks of course
😀
March 13, 2015 at 7:25 am
Viewing 12 posts - 16 through 27 (of 27 total)