Viewing 15 posts - 631 through 645 (of 700 total)
This query should get you started:
SELECT c.TABLE_SCHEMA, c.TABLE_NAME, c.COLUMN_NAME
FROM INFORMATION_SCHEMA.COLUMNS c INNER JOIN
INFORMATION_SCHEMA.TABLES t ON t.TABLE_SCHEMA = c.TABLE_SCHEMA AND t.TABLE_NAME = c.TABLE_NAME
WHERE t.TABLE_TYPE...
April 25, 2006 at 11:02 am
0x0a (hexadecimal) = decimal 10
char(10) = line feed
select 'A' + convert(char(1),0x0a) + 'B'
is the same as
select 'A' + char(10) +
April 25, 2006 at 10:49 am
When using the udf like this:
UPDATE #final SET
intl_codes1 = dbo.GetInternationalCodes( award_id)
you're still performing row-by-row actions, and hopping off to a separate function each time to...
April 21, 2006 at 11:01 am
You can also take a look into using XML templates to present query results through the SQLXML IIS plugin. Query + FOR XML + XSLT = web page
Marshall's suggestion of...
April 20, 2006 at 10:26 am
I would advise writing a stored procedure to do the work, and grant access to the procedure.
You could include checks in the procedure so it only works in a certain...
April 20, 2006 at 10:21 am
1. When a procedure is named sp_<name> (or dbo.sp_<name> ), SQL Server will search for it in the Master database before searching in the current database. If you have a server...
April 20, 2006 at 5:43 am
If I'm reading this right...
You don't need the DISTINCT statement, the GROUP handles that.
To filter on aggregates after the grouping, use the HAVING clause:
SELECT hist.ConsultancyID FROM ben_vw_consultancy_history hist...
April 19, 2006 at 3:20 pm
Go for DBA if you want to be a DBA. The talent pool and market needs change often enough that by the time you're really good at it, the money...
April 15, 2006 at 11:30 am
To total the sum of all columns together:
SELECT IntrestMark, SUM(col1 + col2 + col3 + col4 + col5 + col6) AS [Total] FROM mytable GROUP BY IntrestMark
(See...
April 15, 2006 at 10:53 am
First, your current arrangement is actually part of a recommended practice: put only system tables on the [PRIMARY] group, then create one or more additional filegroups for data tables and...
April 14, 2006 at 10:46 am
Take a look at the sp_spaceused_report procedure posted in message
http://www.sqlservercentral.com/forums/shwmessage.aspx?forumid=8&messageid=265290#bm265442
You can change the final SELECT statement to sum up the #Res table for your result.
You can also remove all...
April 13, 2006 at 1:50 pm
Reports are delivered either
A: Upon user request, to a browser
B: On a schedule to an email address or network location (or other if you've rolled your own extension), or
C:...
April 9, 2006 at 8:08 pm
1. The message about the semicolon is part of the answer:
<...>
SET @user-id = 'EC3C39B4-0E80-4EE9-A235-364A17B3A92C';
WITH
April 9, 2006 at 7:54 pm
Outlook 2003 does not install MAPI. You will need to install an older version of Outlook.
I keep a CD with Outlook97 on it just to install MAPI on SQL Servers.
#!&^&**$!!!...
April 7, 2006 at 7:20 am
The prep guide at http://www.microsoft.com/learning/exams/70-431.asp covers the list of topics to understand. I just grabbed that list and went through BOL to pick up the new stuff and the things...
April 6, 2006 at 12:23 pm
Viewing 15 posts - 631 through 645 (of 700 total)