Viewing 15 posts - 1 through 15 (of 100 total)
You could try select top 1 [column_name] from table_name order by [column_name] desc
September 22, 2005 at 8:29 am
Try "sp_fkeys" for a start, look in BOL for arguments and value descriptions for the reult sets.
August 12, 2005 at 4:23 pm
BKELLEY is spot on. Go to tools-->options-->results
You can choose the box "when query batch completes" and either select "play windows beep" or "play this WAV file"
July 27, 2005 at 9:20 am
Here is one way to do a rank:
Taken from The Guru's Guide to Transact SQL pg. 190
select ranking=identity(int), column1
into #rank from table where 1=0 --creates empty table
insert #rank (column1)
select column1...
July 27, 2005 at 9:01 am
OK in summary, sounds like you have the DTS transformation setup based on your source table (or tables if this is a query) pointing at one Excel file (your target). ...
July 26, 2005 at 2:38 pm
You will need to do the export in 2 stages if you use the wizard. It can only point to one sheet at a time (think of it as one...
July 26, 2005 at 8:15 am
Not sure what your level of SQL Server is but...Another way to accomplish your goal:
1) Go to the database where your source table exists.
2) Right click and choose All Tasks
3) ...
July 25, 2005 at 4:20 pm
I would check to see if you are using the same sheet name (table name if you are building the sheet via T-SQL). If you use the same name it...
July 25, 2005 at 4:02 pm
Yes, the excel sheets will show up under the "table names" in the transformation task. If you need to dynamically create sheets you can try building them as you go.
To...
July 25, 2005 at 2:41 pm
Take a look at the different join types in BOL. In your case look at the outer joins section.
July 25, 2005 at 1:46 pm
You may want to play with the naming a little but this is how I've done it a few times:
declare @label varchar(16)
set @label=(select convert(varchar,getdate(),112)+convert(varchar,getdate(),108))
declare @sqlscript varchar(2000)
set @sqlscript='exec sp_addumpdevice ''disk'',''DB_BKP'',''C:\DB_BKP_'+@label+'.bak''
backup database...
July 22, 2005 at 11:24 am
Try this:
exec sp_adddumpdevice 'disk','CE10_db',
'c:\location\CE10_db.bak'
Backup Database CE10 to CE10_db
then drop the device when finished
July 22, 2005 at 10:27 am
I like to use sp_who2 to view my open connections and kill any open spid's connected to that db.
OR, in EM go to Current Activity and right click on an...
July 22, 2005 at 10:14 am
Looks like a stray user is blocking your way. It could even be yourself if you have EM and Query Analyzer open. I would kill all open connections and set...
July 22, 2005 at 9:56 am
OK, we just solved this same issue - today.
Here is what was done:
Look for Oracle Bulletin "Note:215255.1"
Then install Oracle Client 92040 Patch and manualy add permissions to ORACLE_HOME directory, then reboot...
July 21, 2005 at 3:55 pm
Viewing 15 posts - 1 through 15 (of 100 total)