Viewing 15 posts - 391 through 405 (of 1,132 total)
I understand that the names of the database objects are in lower case and you want to have them in upper case?
Although I have posted a solution below, there is...
July 5, 2008 at 6:42 am
As "Phil Factor" indicated "The database hasn't been normalised" but additionally the search criteria is also an array and arrays cannot be easily manipulated with SQL.
The solution is to create...
July 4, 2008 at 12:04 pm
The command line was truncated:
isqlw.exe -S SqlServerName -D DatabaseName
July 4, 2008 at 11:27 am
You can also create a shortcut to Query Analyzer that will automatically connect to a specific server and database. The command line is:
isqlw.exe -S
You can also add...
July 4, 2008 at 11:25 am
I would think I would need an index on HISTORY.TYPE and another on PICKLIST.ID because they are used in a join.
Assumming that a nested loop will be used and HISTORY...
July 3, 2008 at 11:07 am
"How does this work for connecting to named instances?" DNS aliases work for the server name and not for named instances.
That is why I recommend only one instance per...
July 3, 2008 at 10:46 am
A new category should be security:
Only grant the minimum privileges necessary including:
Only DBAs should have any server level roles.
In development, grant minimum rights (ddl_admin is the highest privilege) and do...
July 3, 2008 at 10:21 am
how can I get it to format the results in typical standings table format
WP = .xxx
GB = xx.x
For Winning Percentage, which is not a percentage but is a rate but...
July 3, 2008 at 6:33 am
As Games Behind is within Division within League, here is a solution. Note that Winning Percentage is defined as a computed column.
Create table TeamRecord
(Leaguevarchar(255)not null
,Dvarchar(255) not null
,TAvarchar(255) not null
,Wtinyintnot...
July 2, 2008 at 11:30 am
Without the create table statements, it is not clear how this should be solved, but here is one possibility:
SELECTtblClientImport.StmtNum
,tblStatements.Stmt
,tblStatements.Count_Range
,tblStmtChar.CharNum
,tblCharacteristics.Characteristic
FROMtblClientImport
INNER JOIN tblStatements
ON tblClientImport.StmtNum = tblStatements.StmtNum
LEFT OUTER JOIN
tblStmtChar
on tblStmtChar.SurveyNum = tblClientImport.SurveyNum
and tblStatements.Count_Range...
July 2, 2008 at 10:56 am
For a solution, please read "How do I create a cross-tab (or "pivot") query?"
at http://sqlserver2000.databases.aspfaq.com/how-do-i-create-a-cross-tab-or-pivot-query.html
July 2, 2008 at 7:15 am
"stores a time duration as a varchar eg. 00:01:06"
The problem is the physical datatype used and the that formating is stored. More appropriate would be a numeric datatype such...
July 2, 2008 at 7:07 am
Please see "How do I use a variable in an ORDER BY clause?" at
http://databases.aspfaq.com/database/how-do-i-use-a-variable-in-an-order-by-clause.html
July 1, 2008 at 10:01 am
"But put in DISTINCT and it stops working" - actually it gives an error "Server: Msg 145, Level 15, State 1, Line 4
ORDER BY items must appear in the...
June 30, 2008 at 3:32 pm
This appears to be a variation on First-In First-Out allocation such as for allocating Payments to Invoices or for "best fit"
Someone posted a SQL solution this month but I cannot...
June 28, 2008 at 10:02 am
Viewing 15 posts - 391 through 405 (of 1,132 total)