can we use packages in ms sql server 2008 [closed] - sql

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
can we use packages in ms sql server 2008...i m new to sql server ...
if yes how it can be created and used....

The only thing somewhat similar would be a SQL-CLR assembly, e.g. C# code compiled into an assembly, hosted inside SQL.
There's no equivalent of a package for T-SQL stored functions and stored procedures in SQL Server.
What do you need that for, anyway? Granting permissions?
What you could investigate, too, are the schemas in SQL Server, which also help you grant or manage permissions - but it's quite a different beast from Oracle PL/SQL packages. Schemas manage collections of database objects (any of them - tables, views, stored procs and funcs).
Working with schemas in SQL Server 2005
Security enhancements in SQL Server 2005 - schemas
Marc

I assume you are talking about the Oracle concept of a package which groups related queries etc. If so as far as I know this concept doesn't exit in SQL Server. Also you will get some interference when trying to Google for this from DTS packages, which are a completely different concept.

Related

Oracle PL SQL command-line utility [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 5 years ago.
Improve this question
Is there any kind of program on oracle which helps you with typing?
For example there is SQL Prompt on MS SQL Server, and I want to know if there is something like this on PL/SQL Developer.
The Oracle ecosystem is slightly different in approach from MS SQL Server. Traditionally Oracle has offered a top-notch RDBMS but its supporting tools have been rather basic, with third-party vendors filling in the gap. This contrasts with the MS approach which offers tightly integrated environments for managing and developing against MSSQL.
So yes, PL/SQL Developer (the Allround Automations product) has code completion for PL/SQL and SQL elements. Quest TOAD has it too. Oracle came late to the IDE game but its Oracle SQL Developer product does code completion. Finally, the new Oracle SQL Command Line tool offers statement completion, which is another reason it is superior to the venerable SQL*Plus tool.
These are all separate tools, even the Oracle ones, until Oracle 12cR2 which does bundle SQLcl in the download.

Downgrade database from SQL Server 2012 to 2008 [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
Improve this question
I want to downgrade the database to SQL Server 2008 Enterprise edition. I know there is no direct option. I tried to backup on 2012 and then restore on 2008. Not working.Any Idea on how to completely transfer database ?
You cannot convert a SQL Server 2012 database file to a SQL Server 2008 database file. The downgrade is not possible. The compatibility of database files is available only from an old version to a newer one, not the opposite. Indeed, you can convert a SQL Server 2008 database file to SQL Server 2012 database file.
Use the integrated SQL Server tools:
Right click on the database.
Select Tasks and Generate Scripts.
Following the wizard, at the end of it in the Advanced Scripting Options clicking the "Advanced" button, select the SQL Server version for which you want to generate the scripts, using the option Script for Server Version. Moreover, you would be able to generate the scripts to export the schema of your objects and/or the data, selecting the option Types of data to script, as you can see in the screenshot below:
The time needed for the process to generate both (schema and data) will depend on the amount of data you want to export, of course. As #Arun suggested, have a look at the process in more detail here, using step by step instructions.

Difference between Script, Stored Procedure, T-SQL, PL/SQL [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I'm getting really confused with all these terms. I used to attend a class called PL/SQL, then when I came out to work, I came across other terms like Stored Procedure, T-SQL and even script. They all look very similar to me, but exactly what are the differences between each of them? (if any)
Here's some rough definitions to explain the differences.
PL/SQL - a SQL variation specific to Oracle databases.
T-SQL (Transact-SQL) - a SQL variation specific to Microsoft (and Sybase) databases.
Stored Procedure - a set of SQL commands that is precompiled and stored on the server for reuse
Script - a set of SQL commands that is run ad-hoc (not precompiled / not meant for reuse)
There are more differences between Stored Procedures and Scripts (e.g. sprocs can have parameters, etc.) but that's the fundamental difference.
T-SQL is Microsoft's version of SQL. PL/SQL is Oracle's version of SQL. Both are ANSI SQL compliant, but contain additional capabilities that are not in the standard.
A Stored Procedure is a prepared SQL statement that is stored on the database server, and can be reused by calling it.
Script is basically code, but scripts are typically small, standalone programs that operate without the aid of a GUI. A Stored Procedure could properly be called a script.

Moving database from SQL Server 2000 to SQL Server 2012 [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 9 years ago.
Improve this question
I am trying to back up and restore a database from SQL Server 2000 to SQL Server 2012. I know that the ideal method would be to use SQL Server 2005 or another program as an intercessor; however, I don't have access to any versions of this. So my question is, has anyone had any experience with any software similar that I could use as a middle agent to do this?
I don't know of any software that can act as an intercessor. SQL Server's database format is the definition of proprietary. You'll need to install an instance of SQL Server - temporarily - that lies somewhere between 2000 and 2012, in order to upgrade the database there, then back it up and restore it to 2012. There is no other path.
You don't have access to any intermediate versions? Sure you do. You can download the evaluation edition of SQL Server 2008 R2, and it will work for 180 days, which should be plenty of time to restore your database, increase the compatibility level, and then back it up again.
http://www.microsoft.com/en-us/download/details.aspx?id=8158

Any tool to convert mysql store procedure to ms sql server store procedure? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
I have to migrate database from mysql to ms sql server 2005.I imported table successfully, now i need to convert store procedure written in mysql to ms sql server 2005.i need to convert a ton of sp so manual conversion is a tedious task, is any tool or simple way to convert sp of mysql to sql server 2005.
Take a look at the Microsoft SQL Server Migration Assistant. It has the ability to migrate Events, Functions, Procedures, Statements, Tables, Views, including the data. SSMA 2005/2008 for MySQL v1.0 is designed to work with MySQL 4.1 to 6.0 and all editions of SQL Server 2005, 2008, and SQL Azure.