Viewing 15 posts - 3,781 through 3,795 (of 8,731 total)
You never declare the variable @db_name, which should be declared in the same scope that you declare the cursor.
You really have a weird way of doing things, I missed things...
November 19, 2015 at 7:59 am
Minnu (11/19/2015)
CREATE VIEW [dbo].[test_view]
AS
INSERT INTO s_info
(
s_num, s_name
)
SELECT DISTINCT p_id, p_name
FROM unify
ERROR : Incorrect syntax near the keyword 'INSERT'.
Please help
You can't do anything in a view except for a single...
November 19, 2015 at 7:51 am
I'm sorry, I can't see the screenshot. It would be better if you post DDL for the tables instead of screenshots.
November 19, 2015 at 7:42 am
I know this might seem like more work, but it should be faster than using the scalar function, which is basically a udf.
SELECT DATETIMEFROMPARTS(
...
November 19, 2015 at 7:32 am
I would try to use an adequate collation for the comparison.
DECLARE @C NVARCHAR(10),@R NVARCHAR(10)
SELECT @C=N'12'
SELECT @R=N'12'
SELECT UNICODE(@C),UNICODE(@R), @C, @R
IF @R = @C COLLATE Latin1_General_Bin
BEGIN
SELECT 1
END
GO
November 19, 2015 at 7:17 am
DonlSimpson (11/18/2015)
ZZartin (11/18/2015)
Ed Wagner (11/18/2015)
anthony.green (11/18/2015)
eccentricDBA (11/18/2015)
crookj (11/18/2015)
anthony.green (11/18/2015)
Ed Wagner (11/18/2015)
anthony.green (11/18/2015)
Ed Wagner (11/18/2015)
anthony.green (11/18/2015)
djj (11/18/2015)
Ed Wagner (11/17/2015)
djj (11/17/2015)
DonlSimpson (11/17/2015)
djj (11/17/2015)
Ed Wagner (11/17/2015)
crookj (11/17/2015)
Blizzard (Snow Day)Snow Thrower
Shovel
Dig
Work
Home
Family
Fortunes
Savings
Interest
Investment
Return
Gosub 🙂
BASIC
Visual
Foxpro
Star
Rock
Paper
November 18, 2015 at 11:32 am
Something like this?
CREATE TABLE RACE(
MEMBNO CHAR(15) NOT NULL,
RACE_AI CHAR(1) NULL,
RACE_AS CHAR(1) NULL,
RACE_WH CHAR(1) NULL,
RACE_BL CHAR(1) NULL,
RACE_NH CHAR(1) NULL,
RACE_NA CHAR(1) NULL)
INSERT INTO RACE
VALUES ('0001', 'Y', NULL, NULL, NULL, NULL, NULL)
...
November 18, 2015 at 9:06 am
My options:
SELECT
MAX( CASE WHEN ItemNumber = 1 THEN Item END) AS Col1,
MAX( CASE WHEN ItemNumber = 2 THEN Item END) AS...
November 18, 2015 at 8:28 am
Brandie Tarvin (11/18/2015)
robert.sterbal 56890 (11/18/2015)
Luis Cazares (11/18/2015)
November 18, 2015 at 7:39 am
scorpman (11/18/2015)
I have a question, in terms of performance what's best in a query with LEFT JOIN:
- Put the clause in ON of the LEFT JOIN
- Put the clause in...
November 18, 2015 at 7:24 am
robert.sterbal 56890 (11/18/2015)
have we ever considered using a hashtag in the forums #OMG #BooksOnline #etc?
We're usually reference Books Online by name and most times include a link to the page...
November 18, 2015 at 7:13 am
Carlo Romagnano (11/18/2015)
patricklambin (11/18/2015)
I would advice to prohibit this way of coding/naming.
I disagree, naming conventions should reflect the factory needs. So, it may be that [Sales.XXX] is good in some...
November 18, 2015 at 7:08 am
You're right, those issues might cause a problem. They didn't in my current environment, but I'd be willing to improve the script if you help me with some DDL to...
November 18, 2015 at 7:03 am
SoHelpMeCodd (11/18/2015)
Luis Cazares (11/17/2015)Even if a strongly typed method is used, I would consider that fixing bad data should be important. Creating a list of integers and splitting it, shouldn't...
November 18, 2015 at 6:37 am
Follow these steps to solve this issue:
1. Open Edge
2. In the address bar, type the following: http://chrome.google.com/
3. Press Enter
4. Click on Download
5. Install
6. Use a proper browser. 😀
I'm sorry, I...
November 17, 2015 at 2:25 pm
Viewing 15 posts - 3,781 through 3,795 (of 8,731 total)