Given the following dbml.

How can I create a stored procedure?
Look at the image.
storedprocedurelinq.png
omegaloveAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

AshokSr. Software EngineerCommented:
I don't think you could do that.

Stored Procedure has to be created using (Database Tool) MS SQL Server (or Oracle), etc.
Once it is already created, you can use it in the DBML.

Ashok
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
omegaloveAuthor Commented:
k
0
AshokSr. Software EngineerCommented:
BTW, I just realized that you could create new Stored Procedure using C# code.
As long as you have rights to create Stored Procedures (used login to the database connection must have rights).

Then you could write script to CREATE stored procedure and run from C# code.
I think it is better to use the right database tool because it would give better help finding error and correcting errors.

But if you have perfect code, you could use C# code to create Stored Procedures.

Ashok

0
Introducing Cloud Class® training courses

Tech changes fast. You can learn faster. That’s why we’re bringing professional training courses to Experts Exchange. With a subscription, you can access all the Cloud Class® courses to expand your education, prep for certifications, and get top-notch instructions.

AshokSr. Software EngineerCommented:
BTW, I just realized that you could create new Stored Procedure using C# code.
As long as you have rights to create Stored Procedures (user login to the database connection must have rights).

Then you could write script to CREATE stored procedure and run from C# code.
I think it is better to use the right database tool because it would give better help finding error and correcting errors.

But if you have perfect code, you could use C# code to create Stored Procedures.

Ashok
0
omegaloveAuthor Commented:
This ADO.NET and linq is not much of a big difference?
0
AshokSr. Software EngineerCommented:
Linq-To-Sql uses ADO.NET behind the scene.

ADO.NET Entity model is different. How data is accessed is same, but how you write code is different.

If you want best (very interesting), see ONE HOUR Video @

http://www.silverlight.net/learn/videos/all/net-ria-services-intro/

Above video is made for Silverlight, but I think you could use same approach in ASP.NET applications.

HTH
Ashok
0
AshokSr. Software EngineerCommented:
Make sure you spend one hour wathcing the video at above link first.  You will not regret it.

See this also, which proves that .NET RIA Services can be used without Silverlight.

http://hatim.indexdev.net/2009/03/27/getting-started-with-net-ria-services/

HTH
Ashok
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
.NET Programming

From novice to tech pro — start learning today.