Viewing 15 posts - 721 through 735 (of 2,038 total)
Hi
Your problem is not the different database. The problem is the "GO". It finishes the complete batch and starts a new one. GO within scripts is equal to using two...
June 7, 2009 at 9:19 am
WILLIAM MITCHELL (6/7/2009)
Sorry, did not read the entire question, missed the part where the dates come from another table.
Nothing to apologize :-). I just intended to ensure that the OP...
June 7, 2009 at 9:14 am
I have no experiences with any object oriented database. Since now I was able to handle every thing in simple RDBs ;-).
As you wrote it sounds like a school project....
June 7, 2009 at 9:10 am
WILLIAM MITCHELL (6/7/2009)
-- these would be your input parameters
DECLARE
@empno int,
@start_date datetime,
@end_date datetime,
@project nvarchar(50)
-- set them to some values for testing
SELECT
@empno = 1,
@start_date...
June 7, 2009 at 9:04 am
I suggest to use a GROUP BY instead of a sub-query in your SELECT clause. It performs better for many data:
SELECT
A.id,
...
June 7, 2009 at 8:59 am
I don't think this is possible with SQL. You can try to parse the RTF syntax and insert your data at the right position but I don't think SQL is...
June 7, 2009 at 8:52 am
You can use a Tally table for this:
DECLARE @t TABLE (EmpNo INT, FromDate DATETIME, ToDate DATETIME, Project VARCHAR(30))
INSERT INTO @t
SELECT 1, '2009-10-01', '2009-10-04', 'abc'
SELECT
...
June 7, 2009 at 8:46 am
Hi Lynn
Lynn Pettis (6/7/2009)
June 7, 2009 at 8:40 am
For sure you can create a object oriented application with a relational database back end. I think this is the most common way to make larger software.
Very simplified look from...
June 7, 2009 at 8:37 am
Hi dave
This solution using PATINDEX should work.
; WITH
cte ([domain], [rid], [zone], [moddate], [type]) AS
(
SELECT
domain,
...
June 6, 2009 at 5:25 am
Okay, which criteria are assured?
* "01 ; Serial" after your date?
* " ; Serial" after your date?
* Line 3 for your date?
* Serial at the end of the...
June 5, 2009 at 10:35 am
Hi Clarie
"EXEC" does not support variables within your sql, you have to work with "sp_executesql". Change your SQL variables from VARCHAR(MAX) to NVARCHAR(MAX) (required for sp_executesql) and try this:
--Generate a...
June 5, 2009 at 10:17 am
Hi dave
If your zone text has always the same syntax you can use this.
I used the spaces in your Serial line to replace the date part and "mdocmx." + domain...
June 5, 2009 at 10:10 am
Hi
Just another possible solution
DECLARE @t TABLE (Attr INT, Lib VARCHAR(10))
INSERT INTO @t
SELECT 1, 'row01'
UNION...
June 5, 2009 at 9:49 am
Viewing 15 posts - 721 through 735 (of 2,038 total)