Viewing 15 posts - 196 through 210 (of 232 total)
Can you provide the XML ?
September 5, 2008 at 12:30 am
WITH XMLNAMESPACES('EmployeeXSD' AS E)
SELECT
nref.value ('@DepartmentID', 'int'),
nref2.value('@EmployeeID', 'int'),
nref2.value('@Salary', 'money')
FROM@xml.nodes('/E:Department') AS R(nref)
CROSS APPLY R.nref.nodes('./E:Employee') AS R2(nref2)
this is the sample query u could tryout from this query.
September 5, 2008 at 12:29 am
its all depend on your business logic. If you are managing the transaction in SP then should check it will not create any lock / deadlock for any application same...
September 5, 2008 at 12:08 am
dats really amazing that nobody replied for this question. its okay i got the answer
September 4, 2008 at 11:03 pm
you just have to write a simple sql statements for getting the data from source table and inserting it into destination.:cool: if you want to put a check that if...
September 4, 2008 at 3:12 am
You should go for SSIS or you can also create the job which can execute the batch script to migrate the data.
September 4, 2008 at 12:25 am
you can try for ApexSQL Diff. this is the 3rd party utility. You can compare as well as synchronize the databases
September 4, 2008 at 12:21 am
Scripting is the best way to keep the updates perfect. while deploying updates on production database this helps to to deploy the exact changes. what we prefer is alway deploy...
September 4, 2008 at 12:14 am
Hi Khalidhussain,
Instead of wasting your time in writing a script for comparing database objects, I'll suggest to to better go for third party tool available.
September 2, 2008 at 3:27 am
global_temp tables logic is specially created for wide use/purpose, Microsoft has not any permission for these tables. the reason behind it its scope.
August 22, 2008 at 5:36 am
this could be better implemented as mention below...
IF OBJECT_ID('tempdb..#tbl') IS NOT NULL
DROP TABLE #tbl
CREATE TABLE #tbl(
lngTransactionCnt intPRIMARY KEY CLUSTERED,
strStatus varchar(2),
strStatusDate varchar(8),
strStatusTime varchar(4)
)
INSERT#tbl
SELECTlngTransactionCnt, strStatus, strStatusDate, strStatusTime
FROMtblTransactionHistoryCtmpA
with (nolock)
WHEREstrStatus in ('BP', 'BN',...
August 22, 2008 at 3:35 am
one more query..
select object_name(object_id), * from sys.objects where object_name(object_id) like 'sys%' and type = 'U'
August 22, 2008 at 3:09 am
Okay, the scenario is i have custom filter, which stores the SearchTable, SearchColumnName & SearchParameterValue in table in different columns like Product in 1 column | ProductName in 2 column...
August 20, 2008 at 1:16 am
Can post your question with more clarification.. we didn't get you what exactly you want to do.
August 18, 2008 at 2:54 am
As per my understanding the below script will give you the desired result set.
DECLARE @SQLColumns VARCHAR(4000), @sql VARCHAR(8000)
SET @SQLColumns = 'AddressID, AddressLine1, AddressLine2, City'
SET @sql = 'SELECT '+ @SQLColumns +'...
August 18, 2008 at 12:38 am
Viewing 15 posts - 196 through 210 (of 232 total)