Viewing 15 posts - 91 through 105 (of 616 total)
You're welcome!
CREATE TABLE SCCTest (Col1 INT, Col2 INT, Col3 INT)
INSERT INTO SCCTest (Col1, Col2, Col3) VALUES (1, 2, 3), (4, 5, 6), (7, 8, 9)
SELECT * FROM SCCTest
SELECT * INTO...
November 18, 2013 at 1:50 pm
Ah! Then you need to be introduced to the INTO Clause 😉
November 18, 2013 at 1:29 pm
I would use HTML to output your results. Looks much better when sending in email too.
In fact I was doing something like this last Friday and here is the code...
November 18, 2013 at 10:27 am
Use Jeff Moden's string splitter function. See link below (the function can be found in a zip file at the end of the article)
November 15, 2013 at 5:48 am
ganeshc27 (11/15/2013)
November 15, 2013 at 5:37 am
Heh... I'm 61 and I've got sox that are older than you are. 😀
ROFL.....
November 12, 2013 at 4:04 am
I think I've had this error when connecting to a SQL 2012 instance using the wrong version of SSMS. Are you using the 2012 SSMS version to connect?
November 12, 2013 at 2:55 am
Can I suggest you start with the obvious and chose appropriate data types for your columns?
CREATE TABLE #tbl_ChannelViewCost
(
rcc_id NUMERIC(10,0),
activity_dataset_id NUMERIC(10,0),
profit_centre_id NUMERIC(10,0),
channel_dataset_id NUMERIC(10,0),
customer_dataset_id NUMERIC(10,0),
product_category_dataset_id NUMERIC(10,0),
channel_cost NUMERIC(22,8),
driver_id NUMERIC(5,0),
)
Why are you...
November 11, 2013 at 5:23 am
Cross-posting is frowned upon here I'm afraid!
All replies redirect to : http://www.sqlservercentral.com/Forums/Topic1512602-392-1.aspx
November 8, 2013 at 5:09 am
Welcome to SCC Surya!
Please use the search box to find plenty of articles on this topic.
Here is one I found for you. Hope it helps.
November 8, 2013 at 4:48 am
Welsh Corgi (11/6/2013)
I restarted SQL Server Service.It is at 0% recovered. Not moving.
Let's hope you've got fast disks:-)
November 6, 2013 at 7:22 am
How come you haven't mentioned disaster recovery strategy? That's pretty important IMHO.
We went through a similar exercise some months ago and I had to provide the IT manager with a...
November 6, 2013 at 3:44 am
No it's not a stupid question at all. You may have to write sprocs to record this information in audit tables as TRIGGERS will not do the job. I updated...
November 4, 2013 at 10:00 am
Something like this:
CREATE TABLE dbo.SCC (
Col1 VARCHAr(10),
Col2 INT,
Col3 INT,
Col4 TINYINT)
INSERT INTO dbo.SCC (Col1, Col2, Col3, Col4)
VALUES ('Test1', 3016482, 56395, 1), ('Test1', 3016482, 56395, 2),
('Test2', 5489108, 57921, 2),
('Test2', 5489108, 57921,...
November 4, 2013 at 9:49 am
You may have one SQL login for the app but you must be maintaining a users table somewhere in your database.
If that is the case then you can write custom...
November 4, 2013 at 9:26 am
Viewing 15 posts - 91 through 105 (of 616 total)