Viewing 6 posts - 1 through 6 (of 6 total)
HI,
Below query will find if there are any special character
in string
DECLARE @test-2 VARCHAR(50)
SET @test-2 = 'MySt%ring'
Select Convert(BIT,PATINDEX('%[^a-zA-Z0-9]%',@Test))
Hope this will help you :-):-D
September 26, 2013 at 11:21 pm
Create Script
CREATE TABLE [dbo].[Sales](
[Department] [nvarchar](50) NULL,
[price] [int] NULL
)
Sample data taken
Departmentprice
A 10
B ...
September 25, 2013 at 12:51 am
HI
try this
declare @sql varchar(8000)
SET @dir = 'D:\';
SET @sql = 'bcp "select * from Test.dbo.TableName" queryout "c:\bcptest3.txt " -c -t, -T -S';
September 13, 2013 at 1:47 am
September 10, 2013 at 4:40 am
HI ,
select * INTO Test FROM
(
select ROW_NUMBER()over(partition by customer order by customer) as counts ,customer,Contract
from tablename
) A where counts...
September 10, 2013 at 4:06 am
Viewing 6 posts - 1 through 6 (of 6 total)