Viewing 15 posts - 556 through 570 (of 4,820 total)
If i take out the Select Top 1, will this query handle multiple rows...
Steve (aka sgmunson) 🙂 🙂 🙂
Rent Servers for Income (picks and shovels strategy)
September 25, 2018 at 2:23 pm
Steve (aka sgmunson) 🙂 🙂 🙂
Rent Servers for Income (picks and shovels strategy)
September 25, 2018 at 2:13 pm
Triggers need to be able to handle any given number of rows. You can not rely on there always being just 1 row getting inserted. Any multi-row insert will result...
Steve (aka sgmunson) 🙂 🙂 🙂
Rent Servers for Income (picks and shovels strategy)
September 25, 2018 at 2:10 pm
Your question has inadequate detail. You can certainly run SQL 2012 on that hardware, but the only really important question is what kind of workload you expect to get out...
Steve (aka sgmunson) 🙂 🙂 🙂
Rent Servers for Income (picks and shovels strategy)
September 25, 2018 at 1:42 pm
There is no reason to use anything more than a BIT column to record the vote value. 1 = FOR, 0 = AGAINST, NULL = ABSTAIN. Then add a 2nd...
Steve (aka sgmunson) 🙂 🙂 🙂
Rent Servers for Income (picks and shovels strategy)
September 25, 2018 at 12:51 pm
1.) You have to have network connectivity between the SQL Server and the Linux Server, or nothing you do will work. No network connectivity and you are simply going to...
Steve (aka sgmunson) 🙂 🙂 🙂
Rent Servers for Income (picks and shovels strategy)
September 25, 2018 at 12:35 pm
Steve (aka sgmunson) 🙂 🙂 🙂
Rent Servers for Income (picks and shovels strategy)
September 25, 2018 at 8:29 am
I would require your help on below issue.I am new in MSSQL.
My file is...
Steve (aka sgmunson) 🙂 🙂 🙂
Rent Servers for Income (picks and shovels strategy)
September 25, 2018 at 8:23 am
Papil - Monday, September 24, 2018 10:22 AMThanks.both worked.
You're welcome. FYI, the code I provided will handle any number of periods.
Steve (aka sgmunson) 🙂 🙂 🙂
Rent Servers for Income (picks and shovels strategy)
September 24, 2018 at 3:56 pm
Steve (aka sgmunson) 🙂 🙂 🙂
Rent Servers for Income (picks and shovels strategy)
September 24, 2018 at 3:41 pm
Steve (aka sgmunson) 🙂 🙂 🙂
Rent Servers for Income (picks and shovels strategy)
September 24, 2018 at 3:33 pm
Steve (aka sgmunson) 🙂 🙂 🙂
Rent Servers for Income (picks and shovels strategy)
September 24, 2018 at 3:15 pm
Let's try this:CREATE TABLE #MyTable (
Employee VARCHAR(1) NOT NULL,
[Period] VARCHAR(7) NOT NULL,
personalid VARCHAR(7) NOT NULL,
Product VARCHAR(5) NOT NULL
);
INSERT INTO #MyTable (Employee, [Period], personalid,...
Steve (aka sgmunson) 🙂 🙂 🙂
Rent Servers for Income (picks and shovels strategy)
September 24, 2018 at 9:12 am
And this will be a much better performing scenario due to the clustered indexes: Steve (aka sgmunson) 🙂 🙂 🙂CREATE TABLE #TriggerDate (
MyAccount int,
MyDate date,
UNIQUE CLUSTERED
(
MyAccount ASC,
MyDate ASC
)
Rent Servers for Income (picks and shovels strategy)
September 21, 2018 at 1:07 pm
Here you go...CREATE TABLE #TriggerDate (
MyAccount int,
MyDate date
);
INSERT INTO #TriggerDate (MyAccount, MyDate)
SELECT 1, '2018-07-28' UNION ALL
SELECT 1, '2018-08-02' UNION ALL
SELECT 2, '2018-08-03' UNION ALL
SELECT 3, '2018-07-31';
CREATE TABLE #History (
MyAccount int,
DateSold...
Steve (aka sgmunson) 🙂 🙂 🙂
Rent Servers for Income (picks and shovels strategy)
September 21, 2018 at 10:56 am
Viewing 15 posts - 556 through 570 (of 4,820 total)