Viewing 15 posts - 121 through 135 (of 309 total)
See this article: http://msdn.microsoft.com/en-us/library/ms191485.aspx
You should use backslash n to indicate a linefeed row terminator
June 21, 2010 at 9:12 am
If I understand the requirements correctly, each file can have a different set of columns.
In that case the main challenge is to create a new table for each file with...
June 20, 2010 at 9:03 am
What application is the user trying to connect with ?
Is the user trying to use windows authentication or SQL authentication ?
Is the user's computer a member of the same domain...
June 19, 2010 at 5:39 am
yes, but as I said before, a good index is more important.
June 19, 2010 at 5:14 am
It is not so easy to return the queries that return a large result set, but it is very easy to return the queries that take the longest to execute.
You...
June 18, 2010 at 9:16 am
Well, as usual it depends. 😉
The best way to speed up your query would be to create a clustered index on DATA_ABC with date_id as the first column.
This would mean...
June 18, 2010 at 9:11 am
To get maximum performance you want a merge join between a and b and you want an index on a so you can use a stream aggregation for the group...
June 18, 2010 at 8:54 am
Try something like this:
select
touserid, fromuserid,
stuff((
...
June 18, 2010 at 8:41 am
This will pad the varchar column v in table t to 30 characters:
update t
set v = v+space(30-len(v))
where len(v) < 30
June 18, 2010 at 3:27 am
Exactly what are you trying to do ?
Are you trying to convert from a string to a date, or from a date to a string ?
Is the conversion done inside...
June 17, 2010 at 6:29 am
OK, now I think I understand what you want.
Try this:
select
userid,
substring((
select ' : ' + cast(memo as varchar(max)) + ' , ' + cast(memodate as varchar(max))
from Notes n2
where n2.userid...
June 16, 2010 at 9:25 am
But what should happen if the table contains more than one UserID ?
June 16, 2010 at 9:03 am
_taz_ (6/16/2010)
hmm..I tried with multiple users and it's not working either.. ok back to scratching my head..
As I said before: Give us an example of what your data looks like...
June 16, 2010 at 8:33 am
_taz_ (6/16/2010)
Kingston Dhasian (6/16/2010)
DECLARE @Notes varchar(MAX)
-- Here you are assigning a value to a variable
SELECT @Notes = COALESCE(@Notes + ':', '') +
...
June 16, 2010 at 8:18 am
Hadrian (6/15/2010)
SQL Server Execution Times:
...
June 16, 2010 at 8:15 am
Viewing 15 posts - 121 through 135 (of 309 total)