Jump to content
FiliBlox

[HELP] Visual Basic 10

Recommended Posts

Posted

Salut.

Am nevoie de putin ajutor din partea voastra, asta desigur daca aveti bunavointa sa mi-l acordati.

Am creeat un progam in Visual Basic si as dori sa adaug pentru acesta un sistem de statistica, prin care eu sa pot vedea cati sunt conectati in acel moment, si cate vizite s-au facut in aceea zi.

Nu s-ar putea integra un script html de genul gtop[dot]ro pentru afisarea statisticilor?

Va multumesc, si astept un raspuns.

Posted
Imports Microsoft.SqlServer.Management.Smo
Imports Microsoft.SqlServer.Management.Common

'Connect to the local, default instance of SQL Server.
Dim srv As Server
srv = New Server
'Reference the AdventureWorks database.
Dim db As Database
db = srv.Databases("AdventureWorks")
'Reference the CreditCard table.
Dim tb As Table
tb = db.Tables("CreditCard", "Sales")
'Define a Statistic object by supplying the parent table and name arguments in the constructor.
Dim stat As Statistic
stat = New Statistic(tb, "Test_Statistics")
'Define a StatisticColumn object variable for the CardType column and add to the Statistic object variable.
Dim statcol As StatisticColumn
statcol = New StatisticColumn(stat, "CardType")
stat.StatisticColumns.Add(statcol)
'Create the statistic counter on the instance of SQL Server.
stat.Create()

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...