Viewing 15 posts - 331 through 345 (of 433 total)
Is the RETURN command above the INSERT line part of your testing?
April 23, 2007 at 5:18 am
There is a RETURN above the line "if (@IsCliEnabled=1) --check whether true" stopping the procedure from going any further. This could be from your testing.
April 23, 2007 at 5:16 am
From BoL:
"By placing the database offline, users are prevented from accessing the database, and no modifications to the database can be made until the database is placed online."
May I ask,...
April 23, 2007 at 4:23 am
More parameters means more ?'s. For example, if sp_Bob had two input parameters you would write:
sp_Bob ?, ?
Then you can map the parameters to GlobalVariables in the same way. In...
April 23, 2007 at 3:31 am
Hi. That query would return all the rows where there is data in BOTH lookup tables. Consider using LEFT JOIN; check out the difference by running the below:
CREATE TABLE #parent (parentPK...
April 23, 2007 at 3:26 am
Changing the INNER JOIN to a FULL OUTER JOIN yields the same result from the test data.
April 23, 2007 at 2:13 am
I use a script similar to this to create the ActiveX transformation script for unknown columns:
Function Main()
Dim fso, f
Dim inLine
Dim outLine
Dim sourceName
Dim colNumber
SET fso = CreateObject("Scripting.FileSystemObject")
SET f = fso.openTextFile("c:\trial.csv")
inLine =...
April 20, 2007 at 10:05 am
With the small amount of data that you provided, this:
SELECT Company.company_name AS compName,
Company.Company_ID AS Company_ID,
Company.Reference_Id AS RefID,
Company.Employee_Count AS EmpsSetup,
COUNT(Leave.Leave_No) as CountLeaves,
COUNT(Employee.Employee_No) AS EmpsSystem
FROM Company
LEFT JOIN Employee
ON Employee.Company_ID =...
April 20, 2007 at 9:39 am
Yes you're on the right track.
You'll have to change the CREATE TRIGGER statement to FOR INSERT, UPDATE, DELETE. You can then have...
April 20, 2007 at 9:13 am
Something like...
SELECT so.name as TableName, sp.value AS description, sc.name as ColumnName, UPPER(st.name) as DataType, sc.length, CASE sc.isnullable WHEN 1 THEN NULL ELSE '' END AS isnullable, CASE WHEN scom.text IS...
April 20, 2007 at 5:45 am
I would recommend a database per application as the roll-out of new databases in-line with new application versions is simplified. A backup strategy for all databases is simple enough to...
April 20, 2007 at 5:40 am
You may have to use the SQL Server version of BETWEEN:
select * from VENDOR where BETWEEN DATEADD(dd, -7, GETDATE()) AND GETDATE()
This will give everything in the last 7 days.
April 20, 2007 at 5:23 am
Hi Helen,
Try the following script. The function provides the concatenation you require (I think). Any Q's, just post back.
-- Create...
April 20, 2007 at 5:15 am
Have a look at CREATE INDEX in bol.
You should be able to do something like:
CREATE INDEX ix_myIndex ON myTable( myCol1, myCol2, myCol3....)
after your CREATE TABLE statement.
April 20, 2007 at 2:46 am
The only thing I can think of at the moment is, have you checked the Max Error Count setting on the Options Tab of the task properties?
April 17, 2007 at 7:09 am
Viewing 15 posts - 331 through 345 (of 433 total)