Viewing 15 posts - 46 through 60 (of 209 total)
jcbally (9/12/2010)
Format '04/05/2010' mm/dd/yyyy
I need to compare of greater then the other colum of those dates against another column that...
September 12, 2010 at 10:23 am
Paul White NZ (9/12/2010)
September 12, 2010 at 6:43 am
emdadgar2 (9/8/2010)
I created a table with this fields:
ID bigint not null
fname varchar(50) not null
lname varchar(50) not null
and with this indexes:
clustered index on ID with fill factor...
September 12, 2010 at 5:08 am
jcbally (9/10/2010)
One Column is Varchar Data Type, the other is Date
the varchar data Type is mixed with Null, Date structure like '04/05/2010'...
September 12, 2010 at 3:15 am
vani_r14 (9/9/2010)
Thanks for all your help in the Forum 🙂
I got it figured out and its working now... If any one needs it in case here is what...
September 11, 2010 at 1:29 pm
bhoverman (9/10/2010)
This is what I need to do.
There is a column that is 60 characters long. I need to create two 30...
September 11, 2010 at 5:07 am
A variation using CROSS APPLY
;WITH cteTally (N) AS
(
SELECT ROW_NUMBER() OVER (ORDER BY (SELECT 0))
FROM master..syscolumns
)
SELECT P.ID,...
September 11, 2010 at 1:53 am
The issue you have here is that you are trying to carry out a 4 column PIVOT with the conventional single PIVOT statement. One way to overcome this...
September 10, 2010 at 6:05 pm
springrider (9/9/2010)
Just tried your code in my VB.Net application:
cnSQL.ConnectionString = "Data Source=TETAUTAI;Initial Catalog=TUNA_DBS;UID=user;PWD=pwd;"
...
September 10, 2010 at 4:33 pm
A variation using CROSS APPLY
SELECT #table1.ID, #table1.Description, Z.Services
FROM #table1
CROSS APPLY
(
SELECT
STUFF((SELECT ',' + Service
...
September 10, 2010 at 4:07 pm
It depends how you're using it. For instance in the format file it manifests itself as "\7"
SELECT * FROM OPENROWSET (BULK 'C:\BellDelimitedFile.txt', FORMATFILE = 'C:\Bell.fmt', FIRSTROW = 2) AS Z
Bell.fmt
7.0
3
1...
September 10, 2010 at 1:56 pm
The idea of using the BELL character as a separator is to minimise the risk of a clash with any real characters in the file. The BELL character won't appear...
September 10, 2010 at 1:06 pm
I have modified your file to use CHAR(7) delimiters which seems to solve the problem. You can then BULK INSERT this file into a table as illustrated in...
September 10, 2010 at 11:23 am
e1785 (9/9/2010)
September 10, 2010 at 1:03 am
I have come up with a SQL version using OPENROWSET BULK which seems to work OK. You could also use BULK INSERT via a staging table if you don't want...
September 9, 2010 at 4:38 pm
Viewing 15 posts - 46 through 60 (of 209 total)