Viewing 15 posts - 8,536 through 8,550 (of 8,753 total)
If you are going to switch the encoding from UTF-16 to Windows-1252, you will have to work with the final output as NVARCHAR(MAX) as it cannot be cast back to...
April 22, 2014 at 3:00 am
You are better off using the CHARINDEX function, and CHAR or NCHAR functions when dealing with special characters.
😎
DECLARE @TEST_STR NVARCHAR(128) = N'ASDFGHJ[QWER';
SELECT CHARINDEX(NCHAR(91),@TEST_STR) AS POS
Result
POS
----
8
April 22, 2014 at 1:24 am
First a question, is float the correct data type for the query, most certainly not if dealing with monetary values.
To print the number, you can use either the STR or...
April 22, 2014 at 1:08 am
Do a loop or a cursor, construct a SQL statement for each database, and execute separately.:cool:
April 21, 2014 at 2:44 pm
If I understand the question correctly, you can use the UNICODE function to determine the case if the characters, even if the column/db is case insensitive.
😎
April 21, 2014 at 2:34 pm
Quite some room for improvements, start by moving the parameters to the sp_executesql params and validating the inputs.
😎
April 21, 2014 at 12:28 pm
You are almost there, look at this code, should get you over this hurdle
😎
SELECT
SDH.SalesOrderID AS '@SalesOrderID'
,(SELECT
...
April 21, 2014 at 11:13 am
PSB (4/21/2014)
According to the query time returned is 1970-03-12 19:15:49.000 .SELECT DATEADD(hh,-5,dateadd(s, convert(bigint, 6135349140000) / 1000000, convert(datetime, '1-1-1970 00:00:00')))
The correct time that should be returned is 2014 -03-20 03:27:00.00
Question: where...
April 21, 2014 at 7:25 am
paulo.morgado (4/21/2014)
I have a query that evaluates into an XML document.
I want to read it with SqlCommand.ExecuteXmlReader.
But the...
April 21, 2014 at 6:48 am
Brandie Tarvin (4/21/2014)
Brandie Tarvin (4/21/2014)
How do I figure out what the problem is when I add a reference and it has the yellow warning next to it?
Nevermind. I'm in brain-dead...
April 21, 2014 at 6:36 am
PSB (4/21/2014)
SELECT DATEADD(hh,-5,dateadd(s, convert(bigint, 61353491400000) / 1000, convert(datetime, '1-1-1970 00:00:00')))
The above query throws an error :
Arithmetic overflow error converting...
April 21, 2014 at 6:10 am
Open the Script Task Editor and choose Edit Script. In the VSTA editor, select Project menu and Add Reference...
😎
April 21, 2014 at 5:48 am
Check out Using XML Data Types on technet
😎
April 21, 2014 at 5:14 am
Jeff Moden (4/20/2014)
April 21, 2014 at 4:57 am
Quick question, why are you using the nolock hint?
April 20, 2014 at 6:09 pm
Viewing 15 posts - 8,536 through 8,550 (of 8,753 total)