how can create a visual basic 2017 sql database and table not over module, please

MannySo 25 Reputation points
2024-10-24T10:02:53.48+00:00

I would to create a database in visual basic 2017, sqlexpress, programmatically, code. I am looking for an example code. But I do not need "Module, or class. Because I can't handle this I just need a code from Button Click it is all.

Thank you in advance I really appreciate your help.

Manny

Azure Database for PostgreSQL
Developer technologies Visual Studio Other
SQL Server Other
{count} votes

1 answer

Sort by: Most helpful
  1. Mahesh Kurva 5,025 Reputation points Microsoft External Staff Moderator
    2024-10-24T10:42:26.9633333+00:00

    Hi @MannySo,

    Welcome to the Microsoft Q&A and thank you for posting your questions here.

    As I understand, you are creating a SQL Server database programmatically using Visual Basic 2017 and SQL Express.

    Please refer the document, for creating a SQL Server database programmatically using Visual Basic 2017 and SQL Express.

    https://learn.microsoft.com/en-us/troubleshoot/developer/visualstudio/visual-basic/language-compilers/create-database-programmatically.

    Hope this helps. Do let us know if you any further queries.

    If this answers your query, do click Accept Answer and Yes for was this answer helpful. And, if you have any further query do let us know.

    1 person found this answer helpful.

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.