|
Search
You searched for the word(s):
Showing page 3 of 12 (120 total posts)
< 1 second(s)
-
Insa poti castiga daca log-ul este pe un alt HDD.
-
Nu este OK
''The calling stored procedure or Transact-SQL statement must be rewritten to use the SCOPE_IDENTITY() function which will return the latest identity used within the scope of that user statement, and not the identity within the scope of the nested trigger used by replication.''
@@IDENTITY and SCOPE_IDENTITY return the last ...
-
''Returns the last identity value inserted into an identity column in the same scope. A scope is a module: a stored procedure, trigger, function, or batch. Therefore, two statements are in the same scope if they are in the same stored procedure, function, or batch.''
http://msdn.microsoft.com/en-us/library/ms190315.aspx
(Adica le executi una ...
-
Iar daca nu discutam despre SQL Server 2008 se poate realiza o combinatie de genul:
IF EXISTS (SELECT .....) BEGIN
UPDATE tabela
END
ELSE BEGIN
INSERT tabela
END
-
Nu stiu daca inteleg prea bine dar poate vrei ceva de genul:
SELECT nrcontract,appid,rezolutie, comentarii,
(
SELECT max(c)
FROM (
SELECT dataplata AS c, nrcontract
FROM history
UNION ALL
SELECT lastphonedate AS c, nrcontract
FROM history
) u
WHERE h.nrcontract = u.nrcontract
)as t2, ...
-
TRUNCATE TABLE
http://msdn.microsoft.com/en-us/library/aa260621(SQL.80).aspx
-
Din pacate nu reusesc sa postez o imagine (captura de ecran). Nu este nevoie de linked server. Pur si simplu, deschizi Management Studio si te conectezi la versiunea superioara, creezi un nou mentenance plan, ''tragi'' task-ul de backup, la configurarea task-ului dai NEW(CONNECTION)... de acolo ar trebui sa fie simplu.
-
Dupa ce se creaza noua conexiune, or sa se poata selecta bazele de date.
-
Trebuie sa ai grija cu interogarile pe linked server pentru ca la cantitati mari de date poate fi costisitor. In functie de ce anume faci in procedurile respective poti face ceva de genul:
1. creezi o tabela temporara
2. executi un insert in tabela temporara cu rezultatul procedurii, astfel aduci local numai rezultatul iar executia(filtrarea) se ...
-
Dacă înţeleg eu bine, vrei ca modificările pe care le efectuezi în Excel să se reflecte în cub. Nu se poate şi nici nu cred că ar fi corect. Un cub reprezintă colecţii de date formate din măsuri şi dimensiuni. Aceste date sunt păstrate într-o formă agregată. Dacă modifici (spre exemplu) totalul unei facturi, totalurile (pe zi, ...
3 ...
|
|
|