Viewing 15 posts - 91 through 105 (of 208 total)
The calculation would be just fine, if the currency maintained its value, or at least if interest rate was greater. Nothing about future is sure, least the value of money,...
June 17, 2008 at 6:53 am
Why not sys.configurations?
Proper qualifier would be database.schema.objectname.
Run dbcc checkdb. If ok, check the log file, if someone dropped permissions. "public" must have select permission on this system view.
June 17, 2008 at 6:33 am
Right. And there is more. Such trigger would fail on multirow updates, so for proper work you'd have to open a cursor.
If the trigger instead of sending emails just inserts...
June 6, 2008 at 1:39 am
Before answering I was wondering if missing ALL on final union was intentional or a typo.
Count(*) counts all rows, Count([ALL] column) counts rows where column is not null, so it...
June 4, 2008 at 2:27 am
In web setup the client application is most of times browser. However, the server side is a client for sql server, where you implement update and transaction logic. In ASP...
June 3, 2008 at 8:42 am
I'd use "table inheritance". For example, you have customers and employees, both persons, both have different set of properties, but they have some common properties.
create table dbo.person(
id integer primary key,
name...
June 2, 2008 at 11:38 am
Definitely in the client.
However, it most be done correctly.
For example, you have an input form with master/detail tables. When user saves the data (an OK button), you start transaction, generate...
June 2, 2008 at 10:54 am
If the polling job retains the connection, it doesn't matter much.
The simplest and most efficient would be delete with output:
delete from linkedserver.queue output deleted.*
The statement should not be any more...
May 25, 2008 at 12:08 pm
You mean, you want to insert only, if the record does not exist?
Use left outer join. If it must be a procedure, convert it to table function and insert from...
May 24, 2008 at 1:51 am
jim.powers (5/15/2008)
select col1,col2 from table1,table2
where table1.col1*=table2.col2
and table1.col4=table2.col4
This one would be:
select col1,col2
from table1
inner join table2 as innertable2 on table1.col4 = innertable2.col4
...
May 24, 2008 at 1:39 am
Initially you wrote that ledger contains balance, actually sum of transactions.
Your latest trigger inserts a record into ledger for each transaction, so you have several balance rows to update and...
May 24, 2008 at 1:00 am
There are at least 2 possible problems.
1. each select may not have required indexes
2. it's forced to create a temp table
Union all does not create temp table and if #1...
May 23, 2008 at 11:40 pm
dataville28 (5/23/2008)
Goal:
Server A has sql statements that should execute when a row is inserted
in a spesific table on server B.
Situation:
Server B is a linked server of Server A and all...
May 23, 2008 at 12:28 pm
I'd leave it as it is.
I mean, if they are addresses, they should be normalized, but to override a description or any other simple attribute, such design is OK.
Normalized model...
May 14, 2008 at 5:19 am
The problem is the two statements have different where conditions and second has no group by clause, so you can't combine them.
May 14, 2008 at 4:59 am
Viewing 15 posts - 91 through 105 (of 208 total)