new_time function in SQL Server 2005 - sql

Is there a function or a workaround in SQL Server 2005 that is equivalent to the new_time() function in oracle?

No, there is not equivalent functionality to Oracle's NEW_TIME() function in SQL Server 2005. It was added to SQL Server 2008 - DATETIMEOFFSET.
CLR UDF would be the most likely alternative.

Related

What Function Support to do triple des Encryption /Decryption in sql server 2000? [duplicate]

For Example:
Here, Is this function EncryptByPassPharase() support in sql server 2000? If Not Then is there any function like that in sql server 2000? How Can I do same thing in sql server 2000?
INSERT INTO login_details(username,password) VALUES('smith2',EncryptByPassPhrase('12','XXX'))
No, the function EncryptByPassPharase() is not support for SQL Server < 2008. On microsoft doc has been detail about it. You can se more detail here ENCRYPTBYPASSPHRASE

How can I make an SQL Server 2008 procedure get data from SQL Server Compact?

How can I transfer a SQL Server Compact database to SQL Server 2008 by using
a SQL Server 2008 procedure?
Yes, you can create a SQLCLR procedure using the SQL Server Compact OLEDB provider. I have some sample code here: http://erikej.blogspot.dk/2008/10/accessing-sql-compact-from-sql-server.html
If you want to do a one off transfer from SQL Server Compact to SQL Server 2008, you can use my ExportSqlCe command line to in combination with sqlcmd to transfer the entire database

details of CreateSqlQuery( )

I am new to Hibernate and I need help/answers for few doubts.
1) I am using Oracle 10g dialect and If I use Session.CreateSqlQuery("Oracle syntax SQL Query");
My Question: If I change my dialect to SQL Server 2008. will the query which I have created by using CreateSqlQuery() changes/run's on SQL server 2008.?
or Do i need to change the Query once again.
Thanks & Regards,
Anand.
You need to specify the dialect of SQL server 2008.
It is database dependent.You cannot use same dialect for both databases

AES/Rijndael implementation for SQL Server 2000?

Do you know any function implementation I could use for decrypting data encrypted by AES/Rijndael in SQL Server 2000?
xp_crypt might do it
Without the CLR and other whizzy stuff in SQL Server 2005+ it will be difficult in the raw SQL available in SQL Server 2000.

T-SQL - create partition function and scheme - SQL Server 2008

I am creating partition function and schemes.
In SQL Server 2008, it only defines range partitioning and not list partitions.
Dont we have list partitioning in SQL Server?
I am using SQL Server 2008 Enterprise edition.
There is no List Partitioning in SQL Server 2008. But you can fake it into creating one using the LEFT clause.
Read up here:
http://www.sqlservercentral.com/articles/partition/64740/