Viewing 15 posts - 7,801 through 7,815 (of 13,469 total)
i forced your data to be integers so i could perform math on them, like adding a year; then used a Tally table to generate the results:
With MyData ([Customer...
April 7, 2011 at 2:36 pm
two typical methods can be used
select distinct user from yourtable
--or
select user from yourtable group by user
April 7, 2011 at 1:15 pm
you'll have to install the tools from the standard edition;
the express tools will only let you connect to the database engine.
April 7, 2011 at 1:13 pm
in answer to my own question, i think i needed to use dm_db_session_space_usage instead; that gives me 600 KBbytesUsed in my example.
April 7, 2011 at 12:27 pm
Eddie thanks for the pointers...I'm not getting the results I'm expecting, though.
I created a temp table with the typical SELECT * into #tmp fromSomeTable.
then i ran this command to see...
April 7, 2011 at 12:23 pm
why can't you just wrap the big query as a subselect or CTE, and then join to your lookup table:
you know,
Select
MyAlias.*,
RK_tblInjCodes.*
FROM (
--big query goes...
April 7, 2011 at 10:49 am
could it be something like a missing GO statement, so the DROP/CREATE rolename is part of some stored proc that gets executed?
CREATE PROC MyProc
AS
SELECT 1 from sys.objects
--missing GO
If Exists(somerole)
drop role...
April 7, 2011 at 10:39 am
identity is still exactly what you want, even if you are combining multiple databases together, in my opinion.
One way is to use ranges for the seeds for the identities...
April 7, 2011 at 6:24 am
manavairajan (4/7/2011)
Sub addsinglequte()For a = 1 To 60
Range("d" & a).Select
If Len(ActiveCell.Value) > 0 Then ActiveCell.Value = "''" & ActiveCell.Value & "',"
Next
End Sub
Is there a question in here...
April 7, 2011 at 6:19 am
Brandie glad you found what you are after, and thanks for the link; I added some of those methods to my snippets.
If you get a chance, can you explain why...
April 7, 2011 at 5:52 am
misiekbest (4/7/2011)
Question is simple. What does sqlsrv engine do with table after truncate command?
Someone told me, that it just rename that table (internally?), create new one and drop renamed...
Well,...
April 7, 2011 at 4:58 am
it depends on the work to be done; SQL would evaluate the command and make a decision/plan as to whether pieces of it can be processed in multiple cores; it...
April 7, 2011 at 4:54 am
SQL is a little different;
i believe you are looking for a BACKUP of one database(to create the dump, or *.bak file) and then when it's needed to restore over...
April 7, 2011 at 4:50 am
I've used the FOR XML trick to get the data...it returns string data(varchar(800) or max
this seems to do what you asked for:
/*DocIDSkills
1DocumentNumber,Sale Date
2First Name
3Last Name,DocumentNumber
8City
10Sale Date
*/
SELECT DocID,stuff(( ...
April 6, 2011 at 2:04 pm
Viewing 15 posts - 7,801 through 7,815 (of 13,469 total)